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
f6782bb8
Commit
f6782bb8
authored
Feb 01, 2013
by
Davis King
Browse files
Merge
parents
17592949
a23468b9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
dlib/threads/threads_kernel_1.h
dlib/threads/threads_kernel_1.h
+6
-2
No files found.
dlib/threads/threads_kernel_1.h
View file @
f6782bb8
...
...
@@ -150,6 +150,9 @@ namespace dlib
// broadcast().
value
=
false
;
// signal that we are awake
ReleaseSemaphore
(
hCountSema
,(
LONG
)
1
,
NULL
);
// get a lock on the mutex for the waiters variable
waiters_mutex
.
lock
();
// mark that one less thread will be waiting on this signaler.
...
...
@@ -161,10 +164,11 @@ namespace dlib
else
{
value
=
true
;
}
// signal that we are awake
ReleaseSemaphore
(
hCountSema
,(
LONG
)
1
,
NULL
);
}
// relock the associated mutex
m
.
lock
();
...
...
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