VirtualBox

Ignore:
Timestamp:
Jan 11, 2010 2:01:53 PM (15 years ago)
Author:
vboxsync
Message:

iprt/RTSemMutex: MutexSem -> hMutexSem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/darwin/semaphore-r0drv-darwin.cpp

    r25720 r25721  
    551551
    552552
    553 RTDECL(int)  RTSemMutexDestroy(RTSEMMUTEX MutexSem)
     553RTDECL(int)  RTSemMutexDestroy(RTSEMMUTEX hMutexSem)
    554554{
    555555    /*
    556556     * Validate input.
    557557     */
    558     PRTSEMMUTEXINTERNAL pThis = (PRTSEMMUTEXINTERNAL)MutexSem;
     558    PRTSEMMUTEXINTERNAL pThis = (PRTSEMMUTEXINTERNAL)hMutexSem;
    559559    if (!pThis)
    560560        return VERR_INVALID_PARAMETER;
     
    577577
    578578
    579 RTDECL(int)  RTSemMutexRequest(RTSEMMUTEX MutexSem, unsigned cMillies)
     579RTDECL(int)  RTSemMutexRequest(RTSEMMUTEX hMutexSem, unsigned cMillies)
    580580{
    581581    /*
    582582     * Validate input.
    583583     */
    584     PRTSEMMUTEXINTERNAL pThis = (PRTSEMMUTEXINTERNAL)MutexSem;
     584    PRTSEMMUTEXINTERNAL pThis = (PRTSEMMUTEXINTERNAL)hMutexSem;
    585585    if (!pThis)
    586586        return VERR_INVALID_PARAMETER;
     
    627627
    628628
    629 RTDECL(int)  RTSemMutexRelease(RTSEMMUTEX MutexSem)
     629RTDECL(int)  RTSemMutexRelease(RTSEMMUTEX hMutexSem)
    630630{
    631631    /*
    632632     * Validate input.
    633633     */
    634     PRTSEMMUTEXINTERNAL pThis = (PRTSEMMUTEXINTERNAL)MutexSem;
     634    PRTSEMMUTEXINTERNAL pThis = (PRTSEMMUTEXINTERNAL)hMutexSem;
    635635    AssertPtrReturn(pThis, VERR_INVALID_HANDLE);
    636636    AssertMsg(pThis->u32Magic == RTSEMMUTEX_MAGIC, ("u32Magic=%RX32 pThis=%p\n", pThis->u32Magic, pThis), VERR_INVALID_HANDLE);
     
    677677
    678678
    679 RTDECL(int)  RTSemFastMutexDestroy(RTSEMFASTMUTEX MutexSem)
    680 {
    681     if (MutexSem == NIL_RTSEMFASTMUTEX) /* don't bitch */
     679RTDECL(int)  RTSemFastMutexDestroy(RTSEMFASTMUTEX hMutexSem)
     680{
     681    if (hMutexSem == NIL_RTSEMFASTMUTEX) /* don't bitch */
    682682        return VERR_INVALID_PARAMETER;
    683     PRTSEMFASTMUTEXINTERNAL pFastInt = (PRTSEMFASTMUTEXINTERNAL)MutexSem;
     683    PRTSEMFASTMUTEXINTERNAL pFastInt = (PRTSEMFASTMUTEXINTERNAL)hMutexSem;
    684684    AssertPtrReturn(pFastInt, VERR_INVALID_PARAMETER);
    685685    AssertMsgReturn(pFastInt->u32Magic == RTSEMFASTMUTEX_MAGIC,
     
    698698
    699699
    700 RTDECL(int)  RTSemFastMutexRequest(RTSEMFASTMUTEX MutexSem)
    701 {
    702     PRTSEMFASTMUTEXINTERNAL pFastInt = (PRTSEMFASTMUTEXINTERNAL)MutexSem;
     700RTDECL(int)  RTSemFastMutexRequest(RTSEMFASTMUTEX hMutexSem)
     701{
     702    PRTSEMFASTMUTEXINTERNAL pFastInt = (PRTSEMFASTMUTEXINTERNAL)hMutexSem;
    703703    AssertPtrReturn(pFastInt, VERR_INVALID_PARAMETER);
    704704    AssertMsgReturn(pFastInt->u32Magic == RTSEMFASTMUTEX_MAGIC,
     
    711711
    712712
    713 RTDECL(int)  RTSemFastMutexRelease(RTSEMFASTMUTEX MutexSem)
    714 {
    715     PRTSEMFASTMUTEXINTERNAL pFastInt = (PRTSEMFASTMUTEXINTERNAL)MutexSem;
     713RTDECL(int)  RTSemFastMutexRelease(RTSEMFASTMUTEX hMutexSem)
     714{
     715    PRTSEMFASTMUTEXINTERNAL pFastInt = (PRTSEMFASTMUTEXINTERNAL)hMutexSem;
    716716    AssertPtrReturn(pFastInt, VERR_INVALID_PARAMETER);
    717717    AssertMsgReturn(pFastInt->u32Magic == RTSEMFASTMUTEX_MAGIC,
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