Changeset 25721 in vbox for trunk/src/VBox/Runtime/r0drv/darwin
- Timestamp:
- Jan 11, 2010 2:01:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/darwin/semaphore-r0drv-darwin.cpp
r25720 r25721 551 551 552 552 553 RTDECL(int) RTSemMutexDestroy(RTSEMMUTEX MutexSem)553 RTDECL(int) RTSemMutexDestroy(RTSEMMUTEX hMutexSem) 554 554 { 555 555 /* 556 556 * Validate input. 557 557 */ 558 PRTSEMMUTEXINTERNAL pThis = (PRTSEMMUTEXINTERNAL) MutexSem;558 PRTSEMMUTEXINTERNAL pThis = (PRTSEMMUTEXINTERNAL)hMutexSem; 559 559 if (!pThis) 560 560 return VERR_INVALID_PARAMETER; … … 577 577 578 578 579 RTDECL(int) RTSemMutexRequest(RTSEMMUTEX MutexSem, unsigned cMillies)579 RTDECL(int) RTSemMutexRequest(RTSEMMUTEX hMutexSem, unsigned cMillies) 580 580 { 581 581 /* 582 582 * Validate input. 583 583 */ 584 PRTSEMMUTEXINTERNAL pThis = (PRTSEMMUTEXINTERNAL) MutexSem;584 PRTSEMMUTEXINTERNAL pThis = (PRTSEMMUTEXINTERNAL)hMutexSem; 585 585 if (!pThis) 586 586 return VERR_INVALID_PARAMETER; … … 627 627 628 628 629 RTDECL(int) RTSemMutexRelease(RTSEMMUTEX MutexSem)629 RTDECL(int) RTSemMutexRelease(RTSEMMUTEX hMutexSem) 630 630 { 631 631 /* 632 632 * Validate input. 633 633 */ 634 PRTSEMMUTEXINTERNAL pThis = (PRTSEMMUTEXINTERNAL) MutexSem;634 PRTSEMMUTEXINTERNAL pThis = (PRTSEMMUTEXINTERNAL)hMutexSem; 635 635 AssertPtrReturn(pThis, VERR_INVALID_HANDLE); 636 636 AssertMsg(pThis->u32Magic == RTSEMMUTEX_MAGIC, ("u32Magic=%RX32 pThis=%p\n", pThis->u32Magic, pThis), VERR_INVALID_HANDLE); … … 677 677 678 678 679 RTDECL(int) RTSemFastMutexDestroy(RTSEMFASTMUTEX MutexSem)680 { 681 if ( MutexSem == NIL_RTSEMFASTMUTEX) /* don't bitch */679 RTDECL(int) RTSemFastMutexDestroy(RTSEMFASTMUTEX hMutexSem) 680 { 681 if (hMutexSem == NIL_RTSEMFASTMUTEX) /* don't bitch */ 682 682 return VERR_INVALID_PARAMETER; 683 PRTSEMFASTMUTEXINTERNAL pFastInt = (PRTSEMFASTMUTEXINTERNAL) MutexSem;683 PRTSEMFASTMUTEXINTERNAL pFastInt = (PRTSEMFASTMUTEXINTERNAL)hMutexSem; 684 684 AssertPtrReturn(pFastInt, VERR_INVALID_PARAMETER); 685 685 AssertMsgReturn(pFastInt->u32Magic == RTSEMFASTMUTEX_MAGIC, … … 698 698 699 699 700 RTDECL(int) RTSemFastMutexRequest(RTSEMFASTMUTEX MutexSem)701 { 702 PRTSEMFASTMUTEXINTERNAL pFastInt = (PRTSEMFASTMUTEXINTERNAL) MutexSem;700 RTDECL(int) RTSemFastMutexRequest(RTSEMFASTMUTEX hMutexSem) 701 { 702 PRTSEMFASTMUTEXINTERNAL pFastInt = (PRTSEMFASTMUTEXINTERNAL)hMutexSem; 703 703 AssertPtrReturn(pFastInt, VERR_INVALID_PARAMETER); 704 704 AssertMsgReturn(pFastInt->u32Magic == RTSEMFASTMUTEX_MAGIC, … … 711 711 712 712 713 RTDECL(int) RTSemFastMutexRelease(RTSEMFASTMUTEX MutexSem)714 { 715 PRTSEMFASTMUTEXINTERNAL pFastInt = (PRTSEMFASTMUTEXINTERNAL) MutexSem;713 RTDECL(int) RTSemFastMutexRelease(RTSEMFASTMUTEX hMutexSem) 714 { 715 PRTSEMFASTMUTEXINTERNAL pFastInt = (PRTSEMFASTMUTEXINTERNAL)hMutexSem; 716 716 AssertPtrReturn(pFastInt, VERR_INVALID_PARAMETER); 717 717 AssertMsgReturn(pFastInt->u32Magic == RTSEMFASTMUTEX_MAGIC,
Note:
See TracChangeset
for help on using the changeset viewer.