MCPcopy Create free account
hub / github.com/davisking/dlib / mutex

Method mutex

dlib/threads/threads_kernel_2.h:44–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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); }

Callers

nothing calls this directly

Calls 1

thread_errorClass · 0.85

Tested by

no test coverage detected