Lines Matching defs:pCtxData
330 PTSTRTR0THREADCTXDATA pCtxData = (PTSTRTR0THREADCTXDATA)RTMemAllocZ(sizeof(*pCtxData));
331 AssertReturn(pCtxData, VERR_NO_MEMORY);
332 pCtxData->u32Magic = TSTRTR0THREADCTXDATA_MAGIC;
333 pCtxData->hThreadCtx = hThreadCtx;
334 pCtxData->fPreemptingSuccess = false;
335 pCtxData->fPreemptingInvoked = false;
336 pCtxData->fResumedInvoked = false;
337 pCtxData->fResumedSuccess = false;
338 pCtxData->hSourceThread = RTThreadNativeSelf();
339 RT_ZERO(pCtxData->achResult);
345 pCtxData->uSourceCpuId = RTMpCpuId();
347 rc = RTThreadCtxHooksRegister(hThreadCtx, &tstRTR0ThreadCtxHook, pCtxData);
351 RTMemFree(pCtxData);
360 RTMemFree(pCtxData);
379 if ( pCtxData->uSourceCpuId != uCurrentCpuId
389 if (!ASMAtomicReadBool(&pCtxData->fPreemptingInvoked))
391 if (pCtxData->uSourceCpuId != uCurrentCpuId)
395 pCtxData->uSourceCpuId, uCurrentCpuId);
403 else if (!pCtxData->fPreemptingSuccess)
404 RTStrCopy(pszErr, cchErr, pCtxData->achResult);
411 if ( ASMAtomicReadBool(&pCtxData->fResumedInvoked)
421 if (!ASMAtomicReadBool(&pCtxData->fResumedInvoked))
426 else if (!pCtxData->fResumedSuccess)
427 RTStrCopy(pszErr, cchErr, pCtxData->achResult);
435 RTMemFree(pCtxData);
445 RTMemFree(pCtxData);