mirror of https://github.com/davisking/dlib.git
Made the thread destruction a little more robust.
--HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402840
This commit is contained in:
parent
6c22a6dd36
commit
5a2a4f340f
|
@ -107,6 +107,7 @@ namespace dlib
|
|||
// in this case we just let the thread pool know that it
|
||||
// should self destruct whenever it gets a chance
|
||||
should_destruct = true;
|
||||
data_ready.broadcast();
|
||||
data_mutex.unlock();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue