MCPcopy Create free account
hub / github.com/NGT-labs/NGT / destructThreadMutex

Method destructThreadMutex

lib/NGT/Thread.cpp:53–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51ThreadMutex *Thread::constructThreadMutex() { return new ThreadMutex; }
52
53void Thread::destructThreadMutex(ThreadMutex *t) {
54 if (t != 0) {
55 pthread_mutex_destroy(&(t->mutex));
56 pthread_cond_destroy(&(t->condition));
57 delete t;
58 }
59}
60
61int Thread::start() {
62 pthread_attr_init(&(threadInfo->threadAttr));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected