VirtualBox

Changeset 52626 in vbox for trunk


Ignore:
Timestamp:
Sep 5, 2014 7:28:16 PM (10 years ago)
Author:
vboxsync
Message:

OSX: 3D: offline rendering: atomic variables: U8 -> U32 (thanks to Vitali!).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/OpenGLTest/OpenGLTestDarwin.cpp

    r52623 r52626  
    6161       (result is already cached; just return it.) */
    6262
    63     static uint8_t volatile fInitialized = VBOX_OGL_CHECK_UNINITIALIZED;
    64     if (!ASMAtomicCmpXchgU8(&fInitialized, VBOX_OGL_CHECK_INITIALIZING, VBOX_OGL_CHECK_UNINITIALIZED))
     63    static uint32_t volatile fInitialized = VBOX_OGL_CHECK_UNINITIALIZED;
     64    if (!ASMAtomicCmpXchgU32(&fInitialized, VBOX_OGL_CHECK_INITIALIZING, VBOX_OGL_CHECK_UNINITIALIZED))
    6565    {
    66         while (ASMAtomicReadU8(&fInitialized) != VBOX_OGL_CHECK_INITIALIZED)
     66        while (ASMAtomicReadU32(&fInitialized) != VBOX_OGL_CHECK_INITIALIZED)
    6767            RTThreadSleep(5);
    6868
     
    105105    LogRel(("OpenGL: Offline rendering support is %s (PID=%d)\n", fAppropriate ? "ON" : "OFF", (int)getpid()));
    106106
    107     ASMAtomicWriteU8(&fInitialized, VBOX_OGL_CHECK_INITIALIZED);
     107    ASMAtomicWriteU32(&fInitialized, VBOX_OGL_CHECK_INITIALIZED);
    108108
    109109    return fAppropriate;
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