MCPcopy Create free account
hub / github.com/catboost/catboost / CreateThreadPool

Function CreateThreadPool

util/thread/pool.cpp:779–788  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

777}
778
779THolder<IThreadPool> CreateThreadPool(size_t threadsCount, size_t queueSizeLimit, const TThreadPoolParams& params) {
780 THolder<IThreadPool> queue;
781 if (threadsCount > 1) {
782 queue.Reset(new TThreadPool(params));
783 } else {
784 queue.Reset(new TFakeThreadPool());
785 }
786 queue->Start(threadsCount, queueSizeLimit);
787 return queue;
788}

Callers 4

Y_UNIT_TESTFunction · 0.85
SetThreadCountMethod · 0.85
mainFunction · 0.85

Calls 2

ResetMethod · 0.45
StartMethod · 0.45

Tested by 1