Lines Matching refs:pThreadImpl

56 	osl_TThreadImpl* pThreadImpl= (osl_TThreadImpl*)pData;  in oslWorkerWrapperFunction()  local
64 pThreadImpl->m_WorkerFunction(pThreadImpl->m_pData); in oslWorkerWrapperFunction()
78 osl_TThreadImpl* pThreadImpl; in oslCreateThread() local
81 pThreadImpl= malloc(sizeof(osl_TThreadImpl)); in oslCreateThread()
83 OSL_ASSERT(pThreadImpl); in oslCreateThread()
85 if ( pThreadImpl == NULL ) in oslCreateThread()
90 pThreadImpl->m_WorkerFunction= pWorker; in oslCreateThread()
91 pThreadImpl->m_pData= pThreadData; in oslCreateThread()
92 pThreadImpl->m_nTerminationRequested= 0; in oslCreateThread()
94 pThreadImpl->m_hThread= in oslCreateThread()
98 pThreadImpl, /* provide worker-function with data */ in oslCreateThread()
100 &pThreadImpl->m_ThreadId); in oslCreateThread()
102 if(pThreadImpl->m_hThread == 0) in oslCreateThread()
105 free(pThreadImpl); in oslCreateThread()
109 return (oslThread)pThreadImpl; in oslCreateThread()
135 osl_TThreadImpl* pThreadImpl= (osl_TThreadImpl*)Thread; in osl_getThreadIdentifier() local
137 if (pThreadImpl != NULL) in osl_getThreadIdentifier()
138 return ((oslThreadIdentifier)pThreadImpl->m_ThreadId); in osl_getThreadIdentifier()
148 osl_TThreadImpl* pThreadImpl= (osl_TThreadImpl*)Thread; in osl_destroyThread() local
157 CloseHandle( pThreadImpl->m_hThread ); in osl_destroyThread()
168 osl_TThreadImpl* pThreadImpl= (osl_TThreadImpl*)Thread; in osl_resumeThread() local
170 OSL_ASSERT(pThreadImpl); /* valid ptr? */ in osl_resumeThread()
172 ResumeThread(pThreadImpl->m_hThread); in osl_resumeThread()
180 osl_TThreadImpl* pThreadImpl= (osl_TThreadImpl*)Thread; in osl_suspendThread() local
182 OSL_ASSERT(pThreadImpl); /* valid ptr? */ in osl_suspendThread()
184 SuspendThread(pThreadImpl->m_hThread); in osl_suspendThread()
194 osl_TThreadImpl* pThreadImpl= (osl_TThreadImpl*)Thread; in osl_setThreadPriority() local
196 OSL_ASSERT(pThreadImpl); /* valid ptr? */ in osl_setThreadPriority()
239 SetThreadPriority(pThreadImpl->m_hThread, winPriority); in osl_setThreadPriority()
250 osl_TThreadImpl* pThreadImpl= (osl_TThreadImpl*)Thread; in osl_getThreadPriority() local
253 if(pThreadImpl==NULL || pThreadImpl->m_hThread==0) in osl_getThreadPriority()
259 GetThreadPriority(pThreadImpl->m_hThread); in osl_getThreadPriority()
307 osl_TThreadImpl* pThreadImpl= (osl_TThreadImpl*)Thread; in osl_isThreadRunning() local
310 if(pThreadImpl==NULL || pThreadImpl->m_hThread==0) in osl_isThreadRunning()
315 return (sal_Bool)(WaitForSingleObject(pThreadImpl->m_hThread, 0) != WAIT_OBJECT_0); in osl_isThreadRunning()
323 osl_TThreadImpl* pThreadImpl= (osl_TThreadImpl*)Thread; in osl_joinWithThread() local
326 if(pThreadImpl==NULL || pThreadImpl->m_hThread==0) in osl_joinWithThread()
332 WaitForSingleObject(pThreadImpl->m_hThread, INFINITE); in osl_joinWithThread()
353 osl_TThreadImpl* pThreadImpl= (osl_TThreadImpl*)Thread; in osl_terminateThread() local
356 if (pThreadImpl==NULL || pThreadImpl->m_hThread==0) in osl_terminateThread()
362 osl_incrementInterlockedCount(&(pThreadImpl->m_nTerminationRequested)); in osl_terminateThread()
371 osl_TThreadImpl* pThreadImpl= (osl_TThreadImpl*)Thread; in osl_scheduleThread() local
376 if (pThreadImpl==NULL || pThreadImpl->m_hThread==0) in osl_scheduleThread()
382 return (sal_Bool)(0 == pThreadImpl->m_nTerminationRequested); in osl_scheduleThread()