Commit 0d9ef16a authored by Davis King's avatar Davis King

Fixed a compile time error and also added back in the call to start the

event_handler_thread in the gui core that I accidentally deleted a few minutes ago.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402566
parent c0976e35
......@@ -287,7 +287,11 @@ namespace dlib
auto_mutex M(*global_mutex());
static shared_ptr_thread_safe<event_handler_thread> p;
if (p.get() == 0)
{
p.reset(new event_handler_thread());
global_mutex()->unlock();
p->start_event_thread();
}
return p;
}
......
......@@ -166,7 +166,7 @@ namespace dlib
class base_window
{
friend LRESULT CALLBACK gui_core_kernel_1_globals::WndProc (HWND, UINT, WPARAM, LPARAM);
shared_ptr_thread_safe<event_handler_thread> globals;
shared_ptr_thread_safe<gui_core_kernel_1_globals::event_handler_thread> globals;
HWND hwnd;
DWORD style;
......
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