mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-21 09:52:34 +01:00
Merge branch 'moench' of https://github.com/slsdetectorgroup/slsDetectorPackage into moench
This commit is contained in:
@@ -151,6 +151,7 @@ void* ThreadPool::execute_thread(){
|
|||||||
int ThreadPool::add_task(Task* task){
|
int ThreadPool::add_task(Task* task){
|
||||||
if(m_pool_size == 1){
|
if(m_pool_size == 1){
|
||||||
(*task)();
|
(*task)();
|
||||||
|
delete task;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
m_task_mutex.lock();
|
m_task_mutex.lock();
|
||||||
|
|||||||
Reference in New Issue
Block a user