MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / CreateThreads

Method CreateThreads

Libraries/unrar/threadpool.cpp:93–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91
92
93void ThreadPool::CreateThreads()
94{
95 for(uint I=0;I<MaxAllowedThreads;I++)
96 {
97 ThreadHandles[I] = ThreadCreate(PoolThread, this);
98 ThreadsCreatedCount++;
99#ifdef _WIN_ALL
100 if (ThreadPool::ThreadPriority!=THREAD_PRIORITY_NORMAL)
101 SetThreadPriority(ThreadHandles[I],ThreadPool::ThreadPriority);
102#endif
103 }
104}
105
106
107NATIVE_THREAD_TYPE ThreadPool::PoolThread(void *Param)

Callers

nothing calls this directly

Calls 1

ThreadCreateFunction · 0.85

Tested by

no test coverage detected