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

Method newThread

lib/cpp/src/thrift/concurrency/ThreadFactory.cpp:29–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27namespace concurrency {
28
29std::shared_ptr<Thread> ThreadFactory::newThread(std::shared_ptr<Runnable> runnable) const {
30 std::shared_ptr<Thread> result = std::make_shared<Thread>(isDetached(), runnable);
31 runnable->thread(result);
32 return result;
33}
34
35Thread::id_t ThreadFactory::getCurrentThreadId() const {
36 return std::this_thread::get_id();

Callers 15

global_fixtureMethod · 0.45
startServerMethod · 0.45
startServerMethod · 0.45
startMethod · 0.45
reapNThreadsMethod · 0.45
synchStartTestMethod · 0.45
floodNTestMethod · 0.45
registerEventsMethod · 0.45
onClientConnectedMethod · 0.45
addWorkerMethod · 0.45
startMethod · 0.45

Calls 1

threadMethod · 0.80

Tested by 10

global_fixtureMethod · 0.36
startServerMethod · 0.36
startServerMethod · 0.36
startMethod · 0.36
reapNThreadsMethod · 0.36
synchStartTestMethod · 0.36
floodNTestMethod · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36