mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 21:07:13 +02:00
refine threadpool mutex, remove unlock before destroying, unlocking twice is undefined behaviour
This commit is contained in:
@ -7,7 +7,7 @@ Mutex::Mutex() {
|
||||
|
||||
Mutex::~Mutex() {
|
||||
while(is_locked);
|
||||
unlock(); // Unlock Mutex after shared resource is safe
|
||||
//unlock(); // Unlock Mutex after shared resource is safe
|
||||
pthread_mutex_destroy(&m_lock);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user