Commit 5a2a4f34 authored by Davis King's avatar Davis King

Made the thread destruction a little more robust.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402840
parent 6c22a6dd
...@@ -107,6 +107,7 @@ namespace dlib ...@@ -107,6 +107,7 @@ namespace dlib
// in this case we just let the thread pool know that it // in this case we just let the thread pool know that it
// should self destruct whenever it gets a chance // should self destruct whenever it gets a chance
should_destruct = true; should_destruct = true;
data_ready.broadcast();
data_mutex.unlock(); data_mutex.unlock();
} }
} }
......
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