VirtualBox

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


Ignore:
Timestamp:
Dec 31, 2009 1:21:39 PM (15 years ago)
Author:
vboxsync
Message:

iprt,pdmcritsect: Shortening and cleaning up the lock validator structure names.

Location:
trunk/src/VBox/Runtime/include/internal
Files:
2 edited

Legend:

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

    r25602 r25607  
    4141 * Record union for simplifying internal processing.
    4242 */
    43 typedef union RTLOCKVALIDATORRECUNION
     43typedef union RTLOCKVALRECUNION
    4444{
    45     RTLOCKVALIDATORRECCORE      Core;
    46     RTLOCKVALIDATORREC          Excl;
    47     RTLOCKVALIDATORSHARED       Shared;
    48     RTLOCKVALIDATORSHAREDONE    SharedOne;
    49 } RTLOCKVALIDATORRECUNION;
     45    RTLOCKVALRECCORE      Core;
     46    RTLOCKVALRECEXCL      Excl;
     47    RTLOCKVALRECSHRD      Shared;
     48    RTLOCKVALRECSHRDOWN   SharedOwn;
     49} RTLOCKVALRECUNION;
    5050
    5151
     
    5858{
    5959    /** What we're blocking on. */
    60     PRTLOCKVALIDATORRECUNION volatile   pRec;
     60    PRTLOCKVALRECUNION volatile     pRec;
    6161    /** Where we are blocking. */
    62     RTLOCKVALIDATORSRCPOS               SrcPos;
     62    RTLOCKVALSRCPOS                 SrcPos;
    6363    /** Number of registered write locks, mutexes and critsects that this thread owns. */
    64     int32_t volatile                    cWriteLocks;
     64    int32_t volatile                cWriteLocks;
    6565    /** Number of registered read locks that this thread owns, nesting included. */
    66     int32_t volatile                    cReadLocks;
     66    int32_t volatile                cReadLocks;
    6767} RTLOCKVALIDATORPERTHREAD;
    6868
  • trunk/src/VBox/Runtime/include/internal/magics.h

    r25491 r25607  
    6868#define RTLOCALIPCSESSION_MAGIC     0x19530414
    6969/** The magic value for RTLOCKVALIDATORREC::u32Magic. (Vladimir Vladimirovich Nabokov) */
    70 #define RTLOCKVALIDATORREC_MAGIC            0x18990422
     70#define RTLOCKVALRECEXCL_MAGIC      0x18990422
    7171/** The dead magic value for RTLOCKVALIDATORREC::u32Magic. */
    72 #define RTLOCKVALIDATORREC_MAGIC_DEAD      0x19770702
    73 /** The magic value for RTLOCKVALIDATORSHARED::u32Magic. (Agnar Mykle) */
    74 #define RTLOCKVALIDATORSHARED_MAGIC         0x19150808
    75 /** The magic value for RTLOCKVALIDATORSHARED::u32Magic after deletion. */
    76 #define RTLOCKVALIDATORSHARED_MAGIC_DEAD    0x19940115
    77 /** The magic value for RTLOCKVALIDATORSHAREDONE::u32Magic. (Jens Ingvald Bjoerneboe) */
    78 #define RTLOCKVALIDATORSHAREDONE_MAGIC      0x19201009
    79 /** The magic value for RTLOCKVALIDATORSHAREDONE::u32Magic after deletion. */
    80 #define RTLOCKVALIDATORSHAREDONE_MAGIC_DEAD 0x19760509
     72#define RTLOCKVALRECEXCL_MAGIC_DEAD 0x19770702
     73/** The magic value for RTLOCKVALRECSHRD::u32Magic. (Agnar Mykle) */
     74#define RTLOCKVALRECSHRD_MAGIC      0x19150808
     75/** The magic value for RTLOCKVALRECSHRD::u32Magic after deletion. */
     76#define RTLOCKVALRECSHRD_MAGIC_DEAD 0x19940115
     77/** The magic value for RTLOCKVALRECSHRDOWN::u32Magic. (Jens Ingvald Bjoerneboe) */
     78#define RTLOCKVALRECSHRDOWN_MAGIC   0x19201009
     79/** The magic value for RTLOCKVALRECSHRDOWN::u32Magic after deletion. */
     80#define RTLOCKVALRECSHRDOWN_MAGIC_DEAD 0x19760509
    8181/** Magic number for RTMEMCACHEINT::u32Magic. (Joseph Weizenbaum) */
    8282#define RTMEMCACHE_MAGIC            0x19230108
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