VirtualBox

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


Ignore:
Timestamp:
May 25, 2009 6:34:43 PM (16 years ago)
Author:
vboxsync
Message:

PDMCritSect: rewrite, ring-0 unlocking not yet enabled.

File:
1 edited

Legend:

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

    r8645 r20008  
    4545
    4646
    47 /**
    48  * The thread state.
    49  */
    50 typedef enum RTTHREADSTATE
    51 {
    52     /** The usual invalid 0 value. */
    53     RTTHREADSTATE_INVALID = 0,
    54     /** The thread is being initialized. */
    55     RTTHREADSTATE_INITIALIZING,
    56     /** The thread has terminated */
    57     RTTHREADSTATE_TERMINATED,
    58     /** Probably running. */
    59     RTTHREADSTATE_RUNNING,
    60     /** Waiting on a critical section. */
    61     RTTHREADSTATE_CRITSECT,
    62     /** Waiting on a mutex. */
    63     RTTHREADSTATE_MUTEX,
    64     /** Waiting on a event semaphore. */
    65     RTTHREADSTATE_EVENT,
    66     /** Waiting on a event multiple wakeup semaphore. */
    67     RTTHREADSTATE_EVENTMULTI,
    68     /** Waiting on a read write semaphore, read (shared) access. */
    69     RTTHREADSTATE_RW_READ,
    70     /** Waiting on a read write semaphore, write (exclusive) access. */
    71     RTTHREADSTATE_RW_WRITE,
    72     /** The thread is sleeping. */
    73     RTTHREADSTATE_SLEEP,
    74     /** The usual 32-bit size hack. */
    75     RTTHREADSTATE_32BIT_HACK = 0x7fffffff
    76 } RTTHREADSTATE;
    77 
    78 
    79 /** Checks if a thread state indicates that the thread is sleeping. */
    80 #define RTTHREAD_IS_SLEEPING(enmState) (    (enmState) == RTTHREADSTATE_CRITSECT \
    81                                         ||  (enmState) == RTTHREADSTATE_MUTEX \
    82                                         ||  (enmState) == RTTHREADSTATE_EVENT \
    83                                         ||  (enmState) == RTTHREADSTATE_EVENTMULTI \
    84                                         ||  (enmState) == RTTHREADSTATE_RW_READ \
    85                                         ||  (enmState) == RTTHREADSTATE_RW_WRITE \
    86                                         ||  (enmState) == RTTHREADSTATE_SLEEP \
    87                                        )
    8847
    8948/** Max thread name length. */
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