VirtualBox

Ignore:
Timestamp:
Aug 7, 2009 3:26:56 PM (15 years ago)
Author:
vboxsync
Message:

iprt/r0drv/solaris: context assertions (RT_MORE_STRICT).

File:
1 edited

Legend:

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

    • Property svn:keywords changed from Id to Author Date Id Revision
    r16200 r22073  
    3434*******************************************************************************/
    3535#include "the-solaris-kernel.h"
     36#include "internal/iprt.h"
     37#include <iprt/semaphore.h>
    3638
    37 #include <iprt/semaphore.h>
     39#include <iprt/asm.h>
     40#include <iprt/assert.h>
    3841#include <iprt/err.h>
    39 #include <iprt/alloc.h>
    40 #include <iprt/assert.h>
    41 #include <iprt/asm.h>
    42 
     42#include <iprt/mem.h>
     43#include <iprt/thread.h>
    4344#include "internal/magics.h"
    4445
     
    5960
    6061
     62
    6163RTDECL(int)  RTSemFastMutexCreate(PRTSEMFASTMUTEX pMutexSem)
    6264{
    6365    AssertCompile(sizeof(RTSEMFASTMUTEXINTERNAL) > sizeof(void *));
    6466    AssertPtrReturn(pMutexSem, VERR_INVALID_POINTER);
     67    RT_ASSERT_PREEMPTIBLE();
    6568
    6669    PRTSEMFASTMUTEXINTERNAL pFastInt = (PRTSEMFASTMUTEXINTERNAL)RTMemAlloc(sizeof(*pFastInt));
     
    8588                    ("pFastInt->u32Magic=%RX32 pFastInt=%p\n", pFastInt->u32Magic, pFastInt),
    8689                    VERR_INVALID_PARAMETER);
     90    RT_ASSERT_INTS_ON();
    8791
    8892    ASMAtomicXchgU32(&pFastInt->u32Magic, RTSEMFASTMUTEX_MAGIC_DEAD);
     
    101105                    ("pFastInt->u32Magic=%RX32 pFastInt=%p\n", pFastInt->u32Magic, pFastInt),
    102106                    VERR_INVALID_PARAMETER);
     107    RT_ASSERT_PREEMPTIBLE();
    103108
    104109    rw_enter(&pFastInt->Mtx, RW_WRITER);
     
    114119                    ("pFastInt->u32Magic=%RX32 pFastInt=%p\n", pFastInt->u32Magic, pFastInt),
    115120                    VERR_INVALID_PARAMETER);
     121    RT_ASSERT_INTS_ON();
    116122
    117123    rw_exit(&pFastInt->Mtx);
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