Lines Matching defs:enmState

48     ASMAtomicCmpXchgSize(&pThread->enmState, enmNewState, enmOldState, fRc);
111 pThread->enmState = PDMTHREADSTATE_INITIALIZING;
157 && pThread->enmState != PDMTHREADSTATE_SUSPENDED)
384 if (pThread->enmState <= PDMTHREADSTATE_TERMINATING)
388 PDMTHREADSTATE enmState = pThread->enmState;
389 switch (enmState)
392 if (!pdmR3AtomicCmpXchgState(pThread, PDMTHREADSTATE_TERMINATING, enmState))
401 if (!pdmR3AtomicCmpXchgState(pThread, PDMTHREADSTATE_TERMINATING, enmState))
410 AssertMsgFailed(("enmState=%d\n", enmState));
428 pThread->enmState = PDMTHREADSTATE_INVALID;
606 PDMTHREADSTATE enmState = pThread->enmState;
607 switch (enmState)
613 if (!pdmR3AtomicCmpXchgState(pThread, PDMTHREADSTATE_TERMINATING, enmState))
623 AssertMsgFailed(("enmState=%d\n", enmState));
650 Assert(pThread->Thread == RTThreadSelf() || pThread->enmState == PDMTHREADSTATE_INITIALIZING);
651 PDMTHREADSTATE enmState = pThread->enmState;
652 Assert( enmState == PDMTHREADSTATE_SUSPENDING
653 || enmState == PDMTHREADSTATE_INITIALIZING);
659 if (pdmR3AtomicCmpXchgState(pThread, PDMTHREADSTATE_SUSPENDED, enmState))
666 && pThread->enmState != PDMTHREADSTATE_SUSPENDED)
674 AssertMsgFailed(("rc=%d enmState=%d\n", rc, pThread->enmState));
696 Assert(pThread->enmState == PDMTHREADSTATE_RESUMING);
710 AssertMsgFailed(("rc=%d enmState=%d\n", rc, pThread->enmState));
734 AssertReturn(pThread->enmState > PDMTHREADSTATE_INVALID && pThread->enmState < PDMTHREADSTATE_TERMINATED, VERR_PDM_THREAD_IPE_2);
741 if (pThread->enmState != PDMTHREADSTATE_RUNNING)
810 if ( pThread->enmState != PDMTHREADSTATE_SUSPENDING
811 && pThread->enmState != PDMTHREADSTATE_INITIALIZING)
813 Assert(pThread->enmState == PDMTHREADSTATE_TERMINATING);
819 if (pThread->enmState != PDMTHREADSTATE_RESUMING)
821 Assert(pThread->enmState == PDMTHREADSTATE_TERMINATING);
838 PDMTHREADSTATE enmState = pThread->enmState;
839 if ( enmState == PDMTHREADSTATE_TERMINATING
840 || pdmR3AtomicCmpXchgState(pThread, PDMTHREADSTATE_TERMINATING, enmState))
844 ASMAtomicXchgSize(&pThread->enmState, PDMTHREADSTATE_TERMINATED);
864 PDMTHREADSTATE enmState = pThread->enmState;
865 switch (enmState)
869 if (!pdmR3AtomicCmpXchgState(pThread, PDMTHREADSTATE_TERMINATING, enmState))
875 if (!pdmR3AtomicCmpXchgState(pThread, PDMTHREADSTATE_TERMINATING, enmState))
880 if (!pdmR3AtomicCmpXchgState(pThread, PDMTHREADSTATE_TERMINATING, enmState))
891 AssertMsgFailed(("enmState=%d\n", enmState));
924 if (pThread->enmState == PDMTHREADSTATE_SUSPENDED)
945 if (pThread->enmState != PDMTHREADSTATE_SUSPENDED)
948 && pThread->enmState != PDMTHREADSTATE_SUSPENDED)
960 AssertMsgFailed(("PDMR3ThreadSuspend -> rc=%Rrc enmState=%d suspending '%s'\n",
961 rc, pThread->enmState, RTThreadGetName(pThread->Thread)));
981 switch (pThread->enmState)
995 AssertMsgFailed(("pThread=%p enmState=%d\n", pThread, pThread->enmState));
1042 && pThread->enmState != PDMTHREADSTATE_RUNNING)
1053 AssertMsgFailed(("PDMR3ThreadResume -> rc=%Rrc enmState=%d\n", rc, pThread->enmState));
1073 switch (pThread->enmState)
1083 AssertMsgFailed(("pThread=%p enmState=%d\n", pThread, pThread->enmState));