MCPcopy Create free account
hub / github.com/davisking/dlib / ~test4_c2

Method ~test4_c2

dlib/test/multithreaded_object.cpp:186–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184 }
185
186 ~test4_c2()
187 {
188 try
189 {
190 DLIB_TEST(number_of_threads_registered() == 2);
191 DLIB_TEST(number_of_threads_alive() == 2);
192 DLIB_TEST_MSG(is_running() == false,"is_running(): " << is_running());
193 stop();
194 DLIB_TEST(number_of_threads_registered() == 2);
195 DLIB_TEST(is_running() == false);
196 wait();
197 DLIB_TEST(number_of_threads_registered() == 2);
198 DLIB_TEST(number_of_threads_alive() == 0);
199 DLIB_TEST(is_running() == false);
200 }
201 catch(std::exception& e)
202 {
203 std::cerr << e.what() << std::endl;
204 exit(1);
205 }
206 }
207
208 private:
209

Callers

nothing calls this directly

Calls 2

stopFunction · 0.85
whatMethod · 0.45

Tested by

no test coverage detected