Changeset 22074 in vbox
- Timestamp:
- Aug 7, 2009 3:27:36 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/darwin/semaphore-r0drv-darwin.cpp
r22052 r22074 217 217 ("pEventInt=%p u32Magic=%#x\n", pEventInt, pEventInt->u32Magic), 218 218 VERR_INVALID_HANDLE); 219 RT_ASSERT_PREEMPTIBLE(); 220 219 if (cMillies) 220 RT_ASSERT_PREEMPTIBLE(); 221 221 222 lck_spin_lock(pEventInt->pSpinlock); 222 223 … … 228 229 rc = VINF_SUCCESS; 229 230 } 231 else if (!cMillies) 232 rc = VERR_TIMEOUT; 230 233 else 231 234 { … … 408 411 ("pEventMultiInt=%p u32Magic=%#x\n", pEventMultiInt, pEventMultiInt->u32Magic), 409 412 VERR_INVALID_HANDLE); 413 RT_ASSERT_PREEMPT_CPUID_VAR(); 414 RT_ASSERT_INTS_ON(); 410 415 411 416 lck_spin_lock(pEventMultiInt->pSpinlock); 412 417 ASMAtomicXchgU8(&pEventMultiInt->fSignaled, false); 413 418 lck_spin_unlock(pEventMultiInt->pSpinlock); 419 420 RT_ASSERT_PREEMPT_CPUID(); 414 421 return VINF_SUCCESS; 415 422 } … … 423 430 ("pEventMultiInt=%p u32Magic=%#x\n", pEventMultiInt, pEventMultiInt->u32Magic), 424 431 VERR_INVALID_HANDLE); 425 RT_ASSERT_PREEMPTIBLE(); 432 if (cMillies) 433 RT_ASSERT_PREEMPTIBLE(); 426 434 427 435 lck_spin_lock(pEventMultiInt->pSpinlock); … … 430 438 if (pEventMultiInt->fSignaled) 431 439 rc = VINF_SUCCESS; 440 else if (!cMillies) 441 rc = VERR_TIMEOUT; 432 442 else 433 443 { … … 578 588 ("pMutexInt->u32Magic=%RX32 pMutexInt=%p\n", pMutexInt->u32Magic, pMutexInt) 579 589 VERR_INVALID_PARAMETER); 580 RT_ASSERT_PREEMPTIBLE(); 590 if (cMillies) 591 RT_ASSERT_PREEMPTIBLE(); 581 592 582 593 /*
Note:
See TracChangeset
for help on using the changeset viewer.