Changeset 25611 in vbox for trunk/src/VBox/Runtime/include
- Timestamp:
- Dec 31, 2009 2:54:25 PM (15 years ago)
- Location:
- trunk/src/VBox/Runtime/include/internal
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/include/internal/lockvalidator.h
r25609 r25611 55 55 * This is part of the RTTHREADINT structure. 56 56 */ 57 typedef struct RTLOCKVAL IDATORPERTHREAD57 typedef struct RTLOCKVALPERTHREAD 58 58 { 59 /** Where we are blocking. */ 60 RTLOCKVALSRCPOS SrcPos; 59 61 /** What we're blocking on. */ 60 62 PRTLOCKVALRECUNION volatile pRec; 61 /** Where we are blocking. */62 RTLOCKVALSRCPOS SrcPos;63 63 /** Number of registered write locks, mutexes and critsects that this thread owns. */ 64 64 int32_t volatile cWriteLocks; 65 65 /** Number of registered read locks that this thread owns, nesting included. */ 66 66 int32_t volatile cReadLocks; 67 } RTLOCKVALIDATORPERTHREAD; 67 /** Bitmap indicating which entires are free (set) and allocated (clear). */ 68 uint32_t bmFreeShrdOwners; 69 /** Reserved for alignment purposes. */ 70 uint32_t u32Reserved; 71 /** Statically allocated shared owner records */ 72 RTLOCKVALRECSHRDOWN aShrdOwners[32]; 73 } RTLOCKVALPERTHREAD; 68 74 69 75 76 DECLHIDDEN(void) rtLockValidatorInitPerThread(RTLOCKVALPERTHREAD *pPerThread); 70 77 DECLHIDDEN(void) rtLockValidatorSerializeDestructEnter(void); 71 78 DECLHIDDEN(void) rtLockValidatorSerializeDestructLeave(void); -
trunk/src/VBox/Runtime/include/internal/magics.h
r25608 r25611 67 67 /** The magic value for RTLOCALIPCSERVER::u32Magic. (Katsuhiro Otomo) */ 68 68 #define RTLOCALIPCSESSION_MAGIC UINT32_C(0x19530414) 69 /** The magic value for RTLOCKVAL IDATORREC::u32Magic. (Vladimir Vladimirovich Nabokov) */69 /** The magic value for RTLOCKVALRECEXCL::u32Magic. (Vladimir Vladimirovich Nabokov) */ 70 70 #define RTLOCKVALRECEXCL_MAGIC UINT32_C(0x18990422) 71 /** The dead magic value for RTLOCKVAL IDATORREC::u32Magic. */71 /** The dead magic value for RTLOCKVALRECEXCL::u32Magic. */ 72 72 #define RTLOCKVALRECEXCL_MAGIC_DEAD UINT32_C(0x19770702) 73 73 /** The magic value for RTLOCKVALRECSHRD::u32Magic. (Agnar Mykle) */ -
trunk/src/VBox/Runtime/include/internal/strict.h
r25482 r25611 35 35 * @{ */ 36 36 37 #ifdef DEBUG_bird /** @todo reenable this for everyone. Just being a little be cautious right now... */ 37 38 /** @def RTCRITSECT_STRICT 38 39 * Enables strictness checks and lock accounting of the RTCritSect API. … … 57 58 # define RTSEMRW_STRICT 58 59 #endif 59 60 #endif /* DEBUG_bird */ 60 61 61 62 -
trunk/src/VBox/Runtime/include/internal/thread.h
r25597 r25611 92 92 #ifdef IN_RING3 93 93 /** The lock validator data. */ 94 RTLOCKVAL IDATORPERTHREADLockValidator;94 RTLOCKVALPERTHREAD LockValidator; 95 95 #endif /* IN_RING3 */ 96 96 #ifdef IPRT_WITH_GENERIC_TLS
Note:
See TracChangeset
for help on using the changeset viewer.