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
24698f87
"git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "f1b7e5f560e5c45b13f4c9dfb8114d67bb99d3d9"
Commit
24698f87
authored
Nov 03, 2015
by
Davis King
Browse files
changed test to avoid compiler error in gcc 4.8
parent
3406a290
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
11 deletions
+19
-11
dlib/test/multithreaded_object.cpp
dlib/test/multithreaded_object.cpp
+19
-11
No files found.
dlib/test/multithreaded_object.cpp
View file @
24698f87
...
...
@@ -183,18 +183,26 @@ namespace
DLIB_TEST
(
is_running
()
==
false
);
}
~
test4_c2
()
throw
(
std
::
exception
)
~
test4_c2
()
{
DLIB_TEST
(
number_of_threads_registered
()
==
2
);
DLIB_TEST
(
number_of_threads_alive
()
==
2
);
DLIB_TEST_MSG
(
is_running
()
==
false
,
"is_running(): "
<<
is_running
());
stop
();
DLIB_TEST
(
number_of_threads_registered
()
==
2
);
DLIB_TEST
(
is_running
()
==
false
);
wait
();
DLIB_TEST
(
number_of_threads_registered
()
==
2
);
DLIB_TEST
(
number_of_threads_alive
()
==
0
);
DLIB_TEST
(
is_running
()
==
false
);
try
{
DLIB_TEST
(
number_of_threads_registered
()
==
2
);
DLIB_TEST
(
number_of_threads_alive
()
==
2
);
DLIB_TEST_MSG
(
is_running
()
==
false
,
"is_running(): "
<<
is_running
());
stop
();
DLIB_TEST
(
number_of_threads_registered
()
==
2
);
DLIB_TEST
(
is_running
()
==
false
);
wait
();
DLIB_TEST
(
number_of_threads_registered
()
==
2
);
DLIB_TEST
(
number_of_threads_alive
()
==
0
);
DLIB_TEST
(
is_running
()
==
false
);
}
catch
(
std
::
exception
&
e
)
{
std
::
cerr
<<
e
.
what
()
<<
std
::
endl
;
exit
(
1
);
}
}
private:
...
...
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