MCPcopy Create free account
hub / github.com/apache/thrift / Thread

Method Thread

lib/cpp/src/thrift/concurrency/Thread.h:83–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 static inline id_t get_current() { return std::this_thread::get_id(); }
82
83 Thread(bool detached, std::shared_ptr<Runnable> runnable)
84 : state_(uninitialized), detached_(detached) {
85 this->_runnable = runnable;
86 }
87
88 virtual ~Thread() {
89 if (!detached_ && thread_->joinable()) {

Callers 3

test_normalconnectionMethod · 0.80
serveMethod · 0.80
serveMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_normalconnectionMethod · 0.64