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
d5ca4a8b
Commit
d5ca4a8b
authored
Dec 28, 2012
by
Davis King
Browse files
Changed the thread_pool so it uses auto_mutex::unlock() in the appropriate places
instead of mutex::unlock().
parent
d6c20069
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
dlib/threads/thread_pool_extension.cpp
dlib/threads/thread_pool_extension.cpp
+1
-1
dlib/threads/thread_pool_extension.h
dlib/threads/thread_pool_extension.h
+3
-3
No files found.
dlib/threads/thread_pool_extension.cpp
View file @
d5ca4a8b
...
...
@@ -275,7 +275,7 @@ namespace dlib
// aren't any other worker threads free so just perform the task right
// here
m
.
unlock
();
M
.
unlock
();
bfp
();
// return a task id that is both non-zero and also one
...
...
dlib/threads/thread_pool_extension.h
View file @
d5ca4a8b
...
...
@@ -182,7 +182,7 @@ namespace dlib
// aren't any other worker threads free so just perform the task right
// here
m
.
unlock
();
M
.
unlock
();
(
obj
.
*
funct
)();
// return a task id that is both non-zero and also one
...
...
@@ -225,7 +225,7 @@ namespace dlib
// aren't any other worker threads free so just perform the task right
// here
m
.
unlock
();
M
.
unlock
();
(
obj
.
*
funct
)(
arg1
);
// return a task id that is both non-zero and also one
...
...
@@ -270,7 +270,7 @@ namespace dlib
// aren't any other worker threads free so just perform the task right
// here
m
.
unlock
();
M
.
unlock
();
(
obj
.
*
funct
)(
arg1
,
arg2
);
// return a task id that is both non-zero and also one
...
...
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