VirtualBox

Changeset 42316 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 23, 2012 8:34:17 AM (13 years ago)
Author:
vboxsync
Message:

Vbgl: FastMutex->Mutex to comply with windows IRQL requirements

Location:
trunk/src/VBox/Additions/common/VBoxGuestLib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/Init.cpp

    r42019 r42316  
    8383    int rc = VINF_SUCCESS;
    8484
    85     rc = RTSemFastMutexRequest(g_vbgldata.mutexDriverInit);
     85    rc = RTSemMutexRequest(g_vbgldata.mutexDriverInit, RT_INDEFINITE_WAIT);
    8686   
    8787    if (RT_FAILURE(rc))
     
    9090    if (g_vbgldata.status == VbglStatusReady)
    9191    {
    92         RTSemFastMutexRelease(g_vbgldata.mutexDriverInit);
     92        RTSemMutexRelease(g_vbgldata.mutexDriverInit);
    9393        return;
    9494    }
     
    119119        }
    120120    }
    121     RTSemFastMutexRelease(g_vbgldata.mutexDriverInit);
     121    RTSemMutexRelease(g_vbgldata.mutexDriverInit);
    122122    dprintf (("vbglQueryDriverInfo rc = %d\n", rc));
    123123}
     
    242242    if (RT_SUCCESS(rc))
    243243    {
    244         rc = RTSemFastMutexCreate(&g_vbgldata.mutexDriverInit);
     244        rc = RTSemMutexCreate(&g_vbgldata.mutexDriverInit);
    245245        if (RT_SUCCESS(rc))
    246246        {
     
    254254            if (RT_FAILURE(rc))
    255255            {
    256                 RTSemFastMutexDestroy(g_vbgldata.mutexDriverInit);
    257                 g_vbgldata.mutexDriverInit = NIL_RTSEMFASTMUTEX;
     256                RTSemMutexDestroy(g_vbgldata.mutexDriverInit);
     257                g_vbgldata.mutexDriverInit = NIL_RTSEMMUTEX;
    258258            }
    259259        }
     
    284284    if (vbglDriverIsOpened(&g_vbgldata.driver))
    285285        vbglDriverClose(&g_vbgldata.driver);
    286     RTSemFastMutexDestroy(g_vbgldata.mutexDriverInit);
    287     g_vbgldata.mutexDriverInit = NIL_RTSEMFASTMUTEX;
     286    RTSemMutexDestroy(g_vbgldata.mutexDriverInit);
     287    g_vbgldata.mutexDriverInit = NIL_RTSEMMUTEX;
    288288
    289289    /* note: do vbglTerminateCommon as a last step since it zeroez up the g_vbgldata
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBGLInternal.h

    r41852 r42316  
    105105     */
    106106
    107     RTSEMFASTMUTEX mutexDriverInit;
     107    RTSEMMUTEX mutexDriverInit;
    108108
    109109    VBGLDRIVER driver;
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