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

Method newThread

be/src/rpc/thrift-thread.cc:60–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60std::shared_ptr<atc::Thread> ThriftThreadFactory::newThread(
61 std::shared_ptr<atc::Runnable> runnable) const {
62 stringstream name;
63 name << prefix_ << "-" << count_.Add(1);
64 std::shared_ptr<ThriftThread> result = std::shared_ptr<ThriftThread>(
65 new ThriftThread(group_, name.str(), isDetached(), runnable));
66 runnable->thread(result);
67 return result;
68}
69
70void ThriftThread::RunRunnable(
71 const std::shared_ptr<atc::Runnable>& runnable, Promise<atc::Thread::id_t>* promise) {

Callers 1

SetupConnectionMethod · 0.45

Calls 2

AddMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected