20 #ifndef THREAD_MUTEX_H 21 #include "SheafSystem/thread_mutex.h" 26 #include "SheafSystem/assert_contract.h" 27 #include "SheafSystem/std_errno.h" 36 int rtncode = pthread_mutex_init(&pthread_mutex,&pthread_mutexattr);
68 int rtncode = pthread_mutex_lock(&pthread_mutex);
84 int rtncode = pthread_mutex_unlock(&pthread_mutex);
101 int rtncode = pthread_mutex_trylock(&pthread_mutex);
105 if (rtncode == EBUSY)
116 sheaf::thread_mutex::
120 return &pthread_mutex;