Changeset 25618 in vbox for trunk/src/VBox/Runtime/include
- Timestamp:
- Jan 2, 2010 12:00:33 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/include/internal/thread.h
r25611 r25618 196 196 #endif 197 197 198 #ifdef ___iprt_asm_h 199 198 200 /** 199 201 * Gets the thread state. … … 207 209 } 208 210 211 /** 212 * Sets the thread state. 213 * 214 * @param pThread The thread. 215 * @param enmNewState The new thread state. 216 */ 217 DECLINLINE(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 209 225 RT_C_DECLS_END 210 226
Note:
See TracChangeset
for help on using the changeset viewer.