Commit e324e949 authored by Xavier Thompson's avatar Xavier Thompson

Destroy pthread mutex and conditional variable in CyLock destructor

parent a33d4e7d
......@@ -58,6 +58,11 @@
this->readers_nb = 0;
this->write_count = 0;
}
~CyLock() {
pthread_mutex_destroy(&this->guard);
pthread_cond_destroy(&this->readers_have_left);
pthread_cond_destroy(&this->writer_has_left);
}
void wlock(const char * context);
void rlock(const char * context);
void unwlock();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment