| 18 | #ifndef ACL_HAS_PTHREAD |
| 19 | |
| 20 | int thread_mutex_init(acl_pthread_mutex_t *mutex, |
| 21 | const acl_pthread_mutexattr_t *mattr) |
| 22 | { |
| 23 | acl_assert(mutex != NULL); |
| 24 | |
| 25 | mutex->dynamic = 0; |
| 26 | |
| 27 | /* Create the mutex, with initial value signaled */ |
| 28 | mutex->id = CreateMutex((SECURITY_ATTRIBUTES *) mattr, FALSE, NULL); |
| 29 | acl_assert(mutex->id); |
| 30 | return 0; |
| 31 | } |
| 32 | |
| 33 | acl_pthread_mutex_t *thread_mutex_create(void) |
| 34 | { |
no outgoing calls
no test coverage detected
searching dependent graphs…