Free the mutex */
| 302 | |
| 303 | /* Free the mutex */ |
| 304 | int pthread_mutex_destroy(pthread_mutex_t *mutex) |
| 305 | { |
| 306 | if (mutex) { |
| 307 | if (mutex->id) { |
| 308 | CloseHandle(mutex->id); |
| 309 | mutex->id = 0; |
| 310 | } |
| 311 | return 0; |
| 312 | } else |
| 313 | return -1; |
| 314 | } |
| 315 | |
| 316 | int pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *mattr) |
| 317 | { |
no outgoing calls
no test coverage detected
searching dependent graphs…