VirtualBox

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


Ignore:
Timestamp:
May 7, 2008 11:01:00 AM (17 years ago)
Author:
vboxsync
Message:

Added lock counts to the threads.

File:
1 edited

Legend:

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

    r8245 r8645  
    6666    /** Waiting on a event multiple wakeup semaphore. */
    6767    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,
    6872    /** The thread is sleeping. */
    6973    RTTHREADSTATE_SLEEP,
     
    7882                                        ||  (enmState) == RTTHREADSTATE_EVENT \
    7983                                        ||  (enmState) == RTTHREADSTATE_EVENTMULTI \
     84                                        ||  (enmState) == RTTHREADSTATE_RW_READ \
     85                                        ||  (enmState) == RTTHREADSTATE_RW_WRITE \
    8086                                        ||  (enmState) == RTTHREADSTATE_SLEEP \
    8187                                       )
     
    140146    /** Where we're blocking. */
    141147    RTUINTPTR volatile      uBlockId;
     148    /** Number of registered write locks, mutexes and critsects that this thread owns. */
     149    int32_t volatile        cWriteLocks;
     150    /** Number of registered read locks that this thread owns, nesting included. */
     151    int32_t volatile        cReadLocks;
    142152#endif /* IN_RING3 */
    143153#ifdef IPRT_WITH_GENERIC_TLS
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