VirtualBox

Changeset 48035 in vbox


Ignore:
Timestamp:
Aug 23, 2013 5:29:18 PM (11 years ago)
Author:
vboxsync
Message:

Runtime/threadctxhooks: Paranoia.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/solaris/threadctxhooks-r0drv-solaris.c

    r47572 r48035  
    3737#include <iprt/err.h>
    3838#include <iprt/asm.h>
     39#include <iprt/log.h>
    3940#include "internal/thread.h"
    4041
     
    5758    void                       *pvUser;
    5859    /** Whether this handle has any hooks registered or not. */
    59     bool                        fRegistered;
     60    bool volatile               fRegistered;
    6061    /** Number of references to this object. */
    6162    uint32_t volatile           cRefs;
     
    213214    Assert(RTThreadPreemptIsEnabled(NIL_RTTHREAD));
    214215
    215     pThis->fRegistered = false;
     216    ASMAtomicWriteBool(&pThis->fRegistered, false);
    216217    uint32_t cRefs = ASMAtomicDecU32(&pThis->cRefs);
    217218
     
    251252                                                          rtThreadCtxHooksSolFree);
    252253        }
    253         AssertMsg(rc, ("removectx failed. rc=%d\n", rc));
     254        AssertMsg(rc, ("removectx() failed. rc=%d\n", rc));
    254255        NOREF(rc);
    255256
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