VirtualBox

Changeset 25721 in vbox for trunk/src/VBox/Runtime/r0drv


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

iprt/RTSemMutex: MutexSem -> hMutexSem

Location:
trunk/src/VBox/Runtime/r0drv
Files:
3 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,
  • trunk/src/VBox/Runtime/r0drv/linux/semmutex-r0drv-linux.c

    r25714 r25721  
    9494
    9595
    96 RTDECL(int)  RTSemMutexDestroy(RTSEMMUTEX MutexSem)
     96RTDECL(int)  RTSemMutexDestroy(RTSEMMUTEX hMutexSem)
    9797{
    9898    /*
    9999     * Validate input.
    100100     */
    101     PRTSEMMUTEXINTERNAL pThis = (PRTSEMMUTEXINTERNAL)MutexSem;
     101    PRTSEMMUTEXINTERNAL pThis = (PRTSEMMUTEXINTERNAL)hMutexSem;
    102102    if (pThis == NIL_RTSEMMUTEX)
    103103        return VINF_SUCCESS;
     
    120120
    121121#undef RTSemMutexRequest
    122 RTDECL(int)  RTSemMutexRequest(RTSEMMUTEX MutexSem, unsigned cMillies)
     122RTDECL(int)  RTSemMutexRequest(RTSEMMUTEX hMutexSem, unsigned cMillies)
    123123{
    124124    int                 rc    = VINF_SUCCESS;
    125     PRTSEMMUTEXINTERNAL pThis = (PRTSEMMUTEXINTERNAL)MutexSem;
     125    PRTSEMMUTEXINTERNAL pThis = (PRTSEMMUTEXINTERNAL)hMutexSem;
    126126
    127127    /*
     
    198198
    199199
    200 RTDECL(int)  RTSemMutexRelease(RTSEMMUTEX MutexSem)
     200RTDECL(int)  RTSemMutexRelease(RTSEMMUTEX hMutexSem)
    201201{
    202202    /*
    203203     * Validate input.
    204204     */
    205     PRTSEMMUTEXINTERNAL pThis = (PRTSEMMUTEXINTERNAL)MutexSem;
     205    PRTSEMMUTEXINTERNAL pThis = (PRTSEMMUTEXINTERNAL)hMutexSem;
    206206    AssertPtrReturn(pThis, VERR_INVALID_HANDLE);
    207207    AssertReturn(pThis->u32Magic == RTSEMMUTEX_MAGIC, VERR_INVALID_HANDLE);
  • trunk/src/VBox/Runtime/r0drv/nt/semmutex-r0drv-nt.cpp

    r25714 r25721  
    9393
    9494
    95 RTDECL(int) RTSemMutexDestroy(RTSEMMUTEX MutexSem)
     95RTDECL(int) RTSemMutexDestroy(RTSEMMUTEX hMutexSem)
    9696{
    9797    /*
    9898     * Validate input.
    9999     */
    100     PRTSEMMUTEXINTERNAL pThis = (PRTSEMMUTEXINTERNAL)MutexSem;
     100    PRTSEMMUTEXINTERNAL pThis = (PRTSEMMUTEXINTERNAL)hMutexSem;
    101101    if (pThis == NIL_RTSEMMUTEX)
    102102        return VINF_SUCCESS;
     
    117117 *
    118118 * @returns IPRT status code.
    119  * @param   MutexSem            The mutex handle.
     119 * @param   hMutexSem            The mutex handle.
    120120 * @param   cMillies            The timeout.
    121121 * @param   fInterruptible      Whether it's interruptible
     
    123123 *                              (RTSemMutexRequest).
    124124 */
    125 static int rtSemMutexRequest(RTSEMMUTEX MutexSem, unsigned cMillies, BOOLEAN fInterruptible)
     125static int rtSemMutexRequest(RTSEMMUTEX hMutexSem, unsigned cMillies, BOOLEAN fInterruptible)
    126126{
    127127    /*
    128128     * Validate input.
    129129     */
    130     PRTSEMMUTEXINTERNAL pThis = (PRTSEMMUTEXINTERNAL)MutexSem;
     130    PRTSEMMUTEXINTERNAL pThis = (PRTSEMMUTEXINTERNAL)hMutexSem;
    131131    AssertPtrReturn(pThis, VERR_INVALID_HANDLE);
    132132    AssertReturn(pThis->u32Magic == RTSEMMUTEX_MAGIC, VERR_INVALID_HANDLE);
     
    174174
    175175#undef RTSemMutexRequest
    176 RTDECL(int) RTSemMutexRequest(RTSEMMUTEX MutexSem, unsigned cMillies)
    177 {
    178     return rtSemMutexRequest(MutexSem, cMillies, FALSE /*fInterruptible*/);
    179 }
    180 
    181 
    182 RTDECL(int) RTSemMutexRequestDebug(RTSEMMUTEX MutexSem, unsigned cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL)
    183 {
    184     return RTSemMutexRequest(MutexSem, cMillies);
     176RTDECL(int) RTSemMutexRequest(RTSEMMUTEX hMutexSem, unsigned cMillies)
     177{
     178    return rtSemMutexRequest(hMutexSem, cMillies, FALSE /*fInterruptible*/);
     179}
     180
     181
     182RTDECL(int) RTSemMutexRequestDebug(RTSEMMUTEX hMutexSem, unsigned cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL)
     183{
     184    return RTSemMutexRequest(hMutexSem, cMillies);
    185185}
    186186
    187187
    188188#undef RTSemMutexRequestNoResume
    189 RTDECL(int) RTSemMutexRequestNoResume(RTSEMMUTEX MutexSem, unsigned cMillies)
    190 {
    191     return rtSemMutexRequest(MutexSem, cMillies, TRUE /*fInterruptible*/);
    192 }
    193 
    194 
    195 RTDECL(int) RTSemMutexRequestNoResumeDebug(RTSEMMUTEX MutexSem, unsigned cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL)
    196 {
    197     return RTSemMutexRequestNoResume(MutexSem, cMillies);
    198 }
    199 
    200 
    201 RTDECL(int) RTSemMutexRelease(RTSEMMUTEX MutexSem)
     189RTDECL(int) RTSemMutexRequestNoResume(RTSEMMUTEX hMutexSem, unsigned cMillies)
     190{
     191    return rtSemMutexRequest(hMutexSem, cMillies, TRUE /*fInterruptible*/);
     192}
     193
     194
     195RTDECL(int) RTSemMutexRequestNoResumeDebug(RTSEMMUTEX hMutexSem, unsigned cMillies, RTHCUINTPTR uId, RT_SRC_POS_DECL)
     196{
     197    return RTSemMutexRequestNoResume(hMutexSem, cMillies);
     198}
     199
     200
     201RTDECL(int) RTSemMutexRelease(RTSEMMUTEX hMutexSem)
    202202{
    203203    /*
    204204     * Validate input.
    205205     */
    206     PRTSEMMUTEXINTERNAL pThis = (PRTSEMMUTEXINTERNAL)MutexSem;
     206    PRTSEMMUTEXINTERNAL pThis = (PRTSEMMUTEXINTERNAL)hMutexSem;
    207207    AssertPtrReturn(pThis, VERR_INVALID_HANDLE);
    208208    AssertReturn(pThis->u32Magic == RTSEMMUTEX_MAGIC, VERR_INVALID_HANDLE);
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