Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
9f022ec0
Commit
9f022ec0
authored
May 20, 2013
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a problem that caused the python interpreter to hang on program exit when
the dlib GUI was used.
parent
7a426a5a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
gui_core_kernel_1.cpp
dlib/gui_core/gui_core_kernel_1.cpp
+8
-2
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