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:
Davis King 2009-01-25 22:14:40 +00:00
parent 6c22a6dd36
commit 5a2a4f340f
1 changed files with 1 additions and 0 deletions

View File

@ -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();
}
}