mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-17 07:55:54 +01: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