Lines Matching refs:thread
112 MW_HANDLE thread; variable
144 : thread(nullptr) in Thread()
150 MT_ASSERT(thread == nullptr, "Thread is not stopped!"); in ~Thread()
155 MT_ASSERT(thread == nullptr, "Thread already started");
159 …thread = ::CreateThread( nullptr, stackSize, ThreadFuncInternal, this, MW_CREATE_SUSPENDED, nullpt…
160 MT_ASSERT(thread != nullptr, "Can't create thread");
167 MW_DWORD res = ::SetThreadIdealProcessor(thread, cpuCore);
173 MW_BOOL result = ::SetThreadPriority(thread, sched_priority);
177 res = ::ResumeThread(thread);
184 if (thread == nullptr) in Join()
189 ::WaitForSingleObject(thread, MW_INFINITE); in Join()
190 MW_BOOL res = CloseHandle(thread); in Join()
193 thread = nullptr; in Join()