VirtualBox

Changeset 30935 in vbox for trunk/src


Ignore:
Timestamp:
Jul 20, 2010 4:56:09 PM (14 years ago)
Author:
vboxsync
Message:

IPRT/RTSEMEVENT_MAGIC_DEAD: Undid the accidental killing of Gaiman! :-)

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

Legend:

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

    r30712 r30935  
    103103/** Magic for the event semaphore structure. (Neil Gaiman) */
    104104#define RTSEMEVENT_MAGIC                UINT32_C(0x19601110)
    105 /** Dead magic value for event semaphore structures. */
    106 #define RTSEMEVENT_MAGIC_DEAD           UINT32_C(0x19930517)
    107105/** Magic for the multiple release event semaphore structure. (Isaac Asimov) */
    108106#define RTSEMEVENTMULTI_MAGIC           UINT32_C(0x19200102)
  • trunk/src/VBox/Runtime/r0drv/solaris/semevent-r0drv-solaris.c

    r30933 r30935  
    119119    ASMAtomicDecU32(&pThis->cRefs);
    120120
    121     pThis->u32Magic = RTSEMEVENT_MAGIC_DEAD; /* make the handle invalid */
     121    pThis->u32Magic = ~RTSEMEVENT_MAGIC; /* make the handle invalid */
    122122    if (pThis->cWaiters > 0)
    123123    {
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