VirtualBox

Changeset 25618 in vbox for trunk/src/VBox/Runtime/include


Ignore:
Timestamp:
Jan 2, 2010 12:00:33 PM (15 years ago)
Author:
vboxsync
Message:

IPRT,pdmcritsect: More lock validator hacking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/include/internal/thread.h

    r25611 r25618  
    196196#endif
    197197
     198#ifdef ___iprt_asm_h
     199
    198200/**
    199201 * Gets the thread state.
     
    207209}
    208210
     211/**
     212 * Sets the thread state.
     213 *
     214 * @param   pThread             The thread.
     215 * @param   enmNewState         The new thread state.
     216 */
     217DECLINLINE(void) rtThreadSetState(PRTTHREADINT pThread, RTTHREADSTATE enmNewState)
     218{
     219    AssertCompile(sizeof(pThread->enmState) == sizeof(uint32_t));
     220    ASMAtomicWriteU32((uint32_t volatile *)&pThread->enmState, enmNewState);
     221}
     222
     223#endif
     224
    209225RT_C_DECLS_END
    210226
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette