Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
9f022ec0
Commit
9f022ec0
authored
May 20, 2013
by
Davis King
Browse files
Fixed a problem that caused the python interpreter to hang on program exit when
the dlib GUI was used.
parent
7a426a5a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
dlib/gui_core/gui_core_kernel_1.cpp
dlib/gui_core/gui_core_kernel_1.cpp
+9
-3
No files found.
dlib/gui_core/gui_core_kernel_1.cpp
View file @
9f022ec0
...
...
@@ -182,11 +182,17 @@ namespace dlib
{
if
(
PostMessage
(
helper_window
,
WM_USER
+
QUIT_EVENT_HANDLER_THREAD
,
0
,
0
)
==
0
)
{
dlog
<<
LERROR
<<
"Unable to schedule function for execution in event handling thread."
;
dlog
<<
LWARN
<<
"Unable to schedule function for execution in event handling thread."
;
// No point calling wait() here since the thread isn't going to
// terminate gracefully in this case. So we just let the program
// end as it will and hope for the best.
}
else
{
// wait for the event handler thread to terminate.
wait
();
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment