Lines Matching refs:_thread
32 _thread(NULL),
52 if (_thread)
54 CloseHandle(_thread);
81 _thread=(HANDLE)_beginthreadex(NULL, 1024*1024, StartThread, (void*)this, 0,
83 if(_thread == NULL)
93 SetThreadPriority(_thread, THREAD_PRIORITY_BELOW_NORMAL);
96 SetThreadPriority(_thread, THREAD_PRIORITY_NORMAL);
99 SetThreadPriority(_thread, THREAD_PRIORITY_ABOVE_NORMAL);
102 SetThreadPriority(_thread, THREAD_PRIORITY_HIGHEST);
105 SetThreadPriority(_thread, THREAD_PRIORITY_TIME_CRITICAL);
125 return SetThreadAffinityMask(_thread,processorBitMask) != 0;
137 if (_thread)
139 ret = TerminateThread(_thread, exitCode);
142 _thread = NULL;
154 if (_thread && !_dead)
158 if( WAIT_OBJECT_0 == WaitForSingleObject(_thread, 2000))
164 if (_thread)
166 CloseHandle(_thread);
167 _thread = NULL;
223 if (_thread && !_doNotCloseHandle)
225 HANDLE thread = _thread;
226 _thread = NULL;