Changeset 22073 in vbox for trunk/src/VBox/Runtime/r0drv/solaris/semfastmutex-r0drv-solaris.c
- Timestamp:
- Aug 7, 2009 3:26:56 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/solaris/semfastmutex-r0drv-solaris.c
-
Property svn:keywords
changed from
Id
toAuthor Date Id Revision
r16200 r22073 34 34 *******************************************************************************/ 35 35 #include "the-solaris-kernel.h" 36 #include "internal/iprt.h" 37 #include <iprt/semaphore.h> 36 38 37 #include <iprt/semaphore.h> 39 #include <iprt/asm.h> 40 #include <iprt/assert.h> 38 41 #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> 43 44 #include "internal/magics.h" 44 45 … … 59 60 60 61 62 61 63 RTDECL(int) RTSemFastMutexCreate(PRTSEMFASTMUTEX pMutexSem) 62 64 { 63 65 AssertCompile(sizeof(RTSEMFASTMUTEXINTERNAL) > sizeof(void *)); 64 66 AssertPtrReturn(pMutexSem, VERR_INVALID_POINTER); 67 RT_ASSERT_PREEMPTIBLE(); 65 68 66 69 PRTSEMFASTMUTEXINTERNAL pFastInt = (PRTSEMFASTMUTEXINTERNAL)RTMemAlloc(sizeof(*pFastInt)); … … 85 88 ("pFastInt->u32Magic=%RX32 pFastInt=%p\n", pFastInt->u32Magic, pFastInt), 86 89 VERR_INVALID_PARAMETER); 90 RT_ASSERT_INTS_ON(); 87 91 88 92 ASMAtomicXchgU32(&pFastInt->u32Magic, RTSEMFASTMUTEX_MAGIC_DEAD); … … 101 105 ("pFastInt->u32Magic=%RX32 pFastInt=%p\n", pFastInt->u32Magic, pFastInt), 102 106 VERR_INVALID_PARAMETER); 107 RT_ASSERT_PREEMPTIBLE(); 103 108 104 109 rw_enter(&pFastInt->Mtx, RW_WRITER); … … 114 119 ("pFastInt->u32Magic=%RX32 pFastInt=%p\n", pFastInt->u32Magic, pFastInt), 115 120 VERR_INVALID_PARAMETER); 121 RT_ASSERT_INTS_ON(); 116 122 117 123 rw_exit(&pFastInt->Mtx); -
Property svn:keywords
changed from
Note:
See TracChangeset
for help on using the changeset viewer.