MCPcopy Create free account
hub / github.com/BVLC/caffe / StopInternalThread

Method StopInternalThread

src/caffe/internal_thread.cpp:56–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void InternalThread::StopInternalThread() {
57 if (is_started()) {
58 thread_->interrupt();
59 try {
60 thread_->join();
61 } catch (boost::thread_interrupted&) {
62 } catch (std::exception& e) {
63 LOG(FATAL) << "Thread exception: " << e.what();
64 }
65 }
66}
67
68} // namespace caffe

Callers 5

RunMethod · 0.80
TEST_FFunction · 0.80
~DataLayerMethod · 0.80

Calls 1

joinMethod · 0.80

Tested by 1

TEST_FFunction · 0.64