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
bdbc8e41
"torchvision/git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "cdb6fba52f461b276d9b4d0a817b62e69344021c"
Commit
bdbc8e41
authored
Jul 22, 2016
by
Davis King
Browse files
Renamed something to avoid name clash with standard library.
parent
bbeac285
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
examples/threads_ex.cpp
examples/threads_ex.cpp
+2
-2
No files found.
examples/threads_ex.cpp
View file @
bdbc8e41
...
@@ -35,7 +35,7 @@ signaler count_signaler(count_mutex); // This is a signaler we will use to sign
...
@@ -35,7 +35,7 @@ signaler count_signaler(count_mutex); // This is a signaler we will use to sign
// unlock count_mutex for you.
// unlock count_mutex for you.
void
thread
(
void
*
)
void
test_
thread
(
void
*
)
{
{
// just sleep for a second
// just sleep for a second
dlib
::
sleep
(
1000
);
dlib
::
sleep
(
1000
);
...
@@ -65,7 +65,7 @@ int main()
...
@@ -65,7 +65,7 @@ int main()
// Create some threads. This 0 we are passing in here is the argument that gets
// Create some threads. This 0 we are passing in here is the argument that gets
// passed to the thread function (a void pointer) but we aren't using it in this
// passed to the thread function (a void pointer) but we aren't using it in this
// example program so i'm just using 0.
// example program so i'm just using 0.
create_new_thread
(
thread
,
0
);
create_new_thread
(
test_
thread
,
0
);
}
}
cout
<<
"Done creating threads, now we wait for them to end"
<<
endl
;
cout
<<
"Done creating threads, now we wait for them to end"
<<
endl
;
...
...
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