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
7638057b
"git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "60927642ae47aa8fde6f894196e0fabda8bad2fd"
Commit
7638057b
authored
Jun 07, 2011
by
Davis King
Browse files
fixed grammar
parent
b6ae2a6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
examples/thread_pool_ex.cpp
examples/thread_pool_ex.cpp
+2
-2
No files found.
examples/thread_pool_ex.cpp
View file @
7638057b
...
@@ -62,9 +62,9 @@ public:
...
@@ -62,9 +62,9 @@ public:
tp
.
add_task
(
*
this
,
&
test
::
subtask2
);
// schedule call to this->subtask2()
tp
.
add_task
(
*
this
,
&
test
::
subtask2
);
// schedule call to this->subtask2()
// Since var is a future, this line will wait for the test::subtask task to
// Since var is a future, this line will wait for the test::subtask task to
// finish
and
before allowing us to access the contents of var. var will
// finish before allowing us to access the contents of var.
Then
var will
// return the integer it contains. In this case result will be assigned
// return the integer it contains. In this case result will be assigned
// the value
of
2 since var was incremented by subtask().
// the value 2 since var was incremented by subtask().
int
result
=
var
;
int
result
=
var
;
// print out the result
// print out the result
dlog
<<
LINFO
<<
"var = "
<<
result
;
dlog
<<
LINFO
<<
"var = "
<<
result
;
...
...
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