| 67 | } // namespace |
| 68 | |
| 69 | THolder<IThread> IThreadFactory::Run(const std::function<void()>& func) { |
| 70 | THolder<IThread> ret(DoCreate()); |
| 71 | |
| 72 | ret->Run(new ::TThreadFactoryFuncObj(func)); |
| 73 | |
| 74 | return ret; |
| 75 | } |
| 76 | |
| 77 | static IThreadFactory* SystemThreadPoolImpl() { |
| 78 | return Singleton<TSystemThreadFactory>(); |
no outgoing calls