Commit 01efae59 authored by Davis King's avatar Davis King

Fixed a race condition in the logger object. It was missing a needed call

to unregister_thread_end_handler().  What could happen in some scenarios is,
during program termination, a global part of the logger object could be destructed
when it still had outstanding thread end handlers registered to it.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402858
parent d0ec0fbe
...@@ -96,6 +96,7 @@ namespace dlib ...@@ -96,6 +96,7 @@ namespace dlib
~global_data ( ~global_data (
) )
{ {
unregister_thread_end_handler(*this,&global_data::thread_end_handler);
} }
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
......
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