| 58 | } |
| 59 | |
| 60 | std::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 | |
| 70 | void ThriftThread::RunRunnable( |
| 71 | const std::shared_ptr<atc::Runnable>& runnable, Promise<atc::Thread::id_t>* promise) { |
no test coverage detected