| 42 | public: |
| 43 | |
| 44 | mutex ( |
| 45 | ) |
| 46 | { |
| 47 | if (pthread_mutex_init(&myMutex,0)) |
| 48 | { |
| 49 | throw dlib::thread_error(ECREATE_MUTEX, |
| 50 | "in function mutex::mutex() an error occurred making the mutex" |
| 51 | ); |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | ~mutex ( |
| 56 | ) { pthread_mutex_destroy(&myMutex); } |
nothing calls this directly
no test coverage detected