Lines Matching refs:pInst
185 Os2SalInstance* pInst = GetSalData()->mpFirstInstance; in ImplSalYieldMutexAcquireWithWait() local
186 if ( !pInst ) in ImplSalYieldMutexAcquireWithWait()
202 if ( pInst->mpSalYieldMutex->tryToAcquire() ) in ImplSalYieldMutexAcquireWithWait()
206 pInst->mpSalWaitMutex->acquire(); in ImplSalYieldMutexAcquireWithWait()
207 if ( pInst->mpSalYieldMutex->tryToAcquire() ) in ImplSalYieldMutexAcquireWithWait()
210 pInst->mpSalWaitMutex->release(); in ImplSalYieldMutexAcquireWithWait()
214 pInst->mnYieldWaitCount++; in ImplSalYieldMutexAcquireWithWait()
215 pInst->mpSalWaitMutex->release(); in ImplSalYieldMutexAcquireWithWait()
217 …WinGetMsg( pSalData->mhAB, &aTmpMsg, pInst->mhComWnd, SAL_MSG_RELEASEWAITYIELD, SAL_MSG_RELEASEWAI… in ImplSalYieldMutexAcquireWithWait()
218 pInst->mnYieldWaitCount--; in ImplSalYieldMutexAcquireWithWait()
219 if ( pInst->mnYieldWaitCount ) in ImplSalYieldMutexAcquireWithWait()
220 WinPostMsg( pInst->mhComWnd, SAL_MSG_RELEASEWAITYIELD, 0 , 0 ); in ImplSalYieldMutexAcquireWithWait()
227 pInst->mpSalYieldMutex->acquire(); in ImplSalYieldMutexAcquireWithWait()
234 Os2SalInstance* pInst = GetSalData()->mpFirstInstance; in ImplSalYieldMutexTryToAcquire() local
235 if ( pInst ) in ImplSalYieldMutexTryToAcquire()
236 return pInst->mpSalYieldMutex->tryToAcquire(); in ImplSalYieldMutexTryToAcquire()
245 Os2SalInstance* pInst = GetSalData()->mpFirstInstance; in ImplSalYieldMutexAcquire() local
246 if ( pInst ) in ImplSalYieldMutexAcquire()
247 pInst->mpSalYieldMutex->acquire(); in ImplSalYieldMutexAcquire()
254 Os2SalInstance* pInst = GetSalData()->mpFirstInstance; in ImplSalYieldMutexRelease() local
255 if ( pInst ) in ImplSalYieldMutexRelease()
256 pInst->mpSalYieldMutex->release(); in ImplSalYieldMutexRelease()
263 Os2SalInstance* pInst = GetSalData()->mpFirstInstance; in ImplSalReleaseYieldMutex() local
264 if ( !pInst ) in ImplSalReleaseYieldMutex()
267 SalYieldMutex* pYieldMutex = pInst->mpSalYieldMutex; in ImplSalReleaseYieldMutex()
283 Os2SalInstance* pInst = GetSalData()->mpFirstInstance; in ImplSalAcquireYieldMutex() local
284 if ( !pInst ) in ImplSalAcquireYieldMutex()
287 SalYieldMutex* pYieldMutex = pInst->mpSalYieldMutex; in ImplSalAcquireYieldMutex()
446 Os2SalInstance* pInst = new Os2SalInstance; in CreateSalInstance() local
449 pSalData->mpFirstInstance = pInst; in CreateSalInstance()
450 pInst->mhAB = pSalData->mhAB; in CreateSalInstance()
451 pInst->mhMQ = pSalData->mhMQ; in CreateSalInstance()
452 pInst->mnArgc = pSalData->mnArgc; in CreateSalInstance()
453 pInst->mpArgv = pSalData->mpArgv; in CreateSalInstance()
454 pInst->mhComWnd = hComWnd; in CreateSalInstance()
457 ImplLoadSalIcon( SAL_RESID_ICON_DEFAULT, pInst->mhAppIcon); in CreateSalInstance()
462 return pInst; in CreateSalInstance()
467 void DestroySalInstance( SalInstance* pInst ) in DestroySalInstance() argument
481 if ( pSalData->mpFirstInstance == pInst ) in DestroySalInstance()
484 delete pInst; in DestroySalInstance()
538 Os2SalInstance* pInst = GetSalData()->mpFirstInstance; in ImplSalYield() local
542 if ( WinPeekMsg( pInst->mhAB, &aMsg, 0, 0, 0, PM_REMOVE ) ) in ImplSalYield()
544 WinDispatchMsg( pInst->mhAB, &aMsg ); in ImplSalYield()
555 if ( WinGetMsg( pInst->mhAB, &aMsg, 0, 0, 0 ) ) in ImplSalYield()
556 WinDispatchMsg( pInst->mhAB, &aMsg ); in ImplSalYield()
646 Os2SalInstance* pInst = GetSalData()->mpFirstInstance; in SalComWndProc() local
647 if ( pInst && pInst->mnYieldWaitCount ) in SalComWndProc()