- Timestamp:
- Sep 5, 2014 7:28:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/OpenGLTest/OpenGLTestDarwin.cpp
r52623 r52626 61 61 (result is already cached; just return it.) */ 62 62 63 static uint 8_t volatile fInitialized = VBOX_OGL_CHECK_UNINITIALIZED;64 if (!ASMAtomicCmpXchgU 8(&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)) 65 65 { 66 while (ASMAtomicReadU 8(&fInitialized) != VBOX_OGL_CHECK_INITIALIZED)66 while (ASMAtomicReadU32(&fInitialized) != VBOX_OGL_CHECK_INITIALIZED) 67 67 RTThreadSleep(5); 68 68 … … 105 105 LogRel(("OpenGL: Offline rendering support is %s (PID=%d)\n", fAppropriate ? "ON" : "OFF", (int)getpid())); 106 106 107 ASMAtomicWriteU 8(&fInitialized, VBOX_OGL_CHECK_INITIALIZED);107 ASMAtomicWriteU32(&fInitialized, VBOX_OGL_CHECK_INITIALIZED); 108 108 109 109 return fAppropriate;
Note:
See TracChangeset
for help on using the changeset viewer.