VirtualBox

Changeset 1816 in vbox for trunk/src/VBox/Runtime/r0drv/nt


Ignore:
Timestamp:
Mar 29, 2007 6:59:35 PM (18 years ago)
Author:
vboxsync
Message:

moved magics to a common header to avoid duplicating the same defines all over the place.

Location:
trunk/src/VBox/Runtime/r0drv/nt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/nt/semaphore-r0drv-nt.cpp

    r1 r1816  
    3232#include <iprt/err.h>
    3333
     34#include "internal/magics.h"
     35
    3436
    3537/*******************************************************************************
     
    4749} RTSEMEVENTINTERNAL, *PRTSEMEVENTINTERNAL;
    4850
    49 /** Magic for the NT event semaphore structure. (Neil Gaiman) */
    50 #define RTSEMEVENT_MAGIC 0x19601110
    5151
    5252
     
    6767} RTSEMMUTEXINTERNAL, *PRTSEMMUTEXINTERNAL;
    6868
    69 /** Magic for the NT mutex semaphore structure. (Douglas Adams) */
    70 #define RTSEMMUTEX_MAGIC 0x19520311
    7169
    7270
     
    8280} RTSEMFASTMUTEXINTERNAL, *PRTSEMFASTMUTEXINTERNAL;
    8381
    84 /** Magic value for RTSEMFASTMUTEXINTERNAL::u32Magic (John Ronald Reuel Tolkien). */
    85 #define RTSEMFASTMUTEX_MAGIC    0x18920102
    8682
    8783
  • trunk/src/VBox/Runtime/r0drv/nt/spinlock-r0drv-nt.cpp

    r1 r1816  
    2525*******************************************************************************/
    2626#include "the-nt-kernel.h"
     27
    2728#include <iprt/spinlock.h>
    2829#include <iprt/err.h>
     
    3031#include <iprt/assert.h>
    3132#include <iprt/asm.h>
     33
     34#include "internal/magics.h"
    3235
    3336
     
    4548    KSPIN_LOCK          Spinlock;
    4649} RTSPINLOCKINTERNAL, *PRTSPINLOCKINTERNAL;
    47 
    48 /** Magic value for RTSPINLOCKINTERNAL::u32Magic. (Terry Pratchett) */
    49 #define RTSPINLOCK_MAGIC    0x19480428
    5050
    5151
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