- Timestamp:
- Jan 31, 2022 1:34:28 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/shaderlib/libWineStub/debug.c
r92903 r93498 60 60 61 61 #ifdef VBOX_WITH_WDDM 62 # include <VBoxDispMpLogger.h>63 # include <iprt/errcore.h>62 # include <VBoxDispMpLogger.h> 63 # include <iprt/errcore.h> 64 64 #else 65 #include <iprt/log.h> 66 #endif 65 # include <iprt/log.h> 66 #endif 67 #include <iprt/asm.h> 67 68 68 69 #if VBOX_WITH_VMSVGA … … 70 71 #ifndef RT_OS_WINDOWS 71 72 #define GetCurrentThreadId() (1) 73 #define GetCurrentProcessId() (1) 72 74 #endif 73 75 #endif … … 324 326 } 325 327 326 #if 328 #ifndef VBOX //!defined(VBOX_WITH_VMSVGA) || defined(RT_OS_WINDOWS) 327 329 int interlocked_xchg_add( int *dest, int incr ) 328 330 { … … 340 342 int idx; 341 343 344 #ifndef VBOX 342 345 idx = interlocked_xchg_add( &pos, 1 ) % (sizeof(list)/sizeof(list[0])); 346 #else 347 idx = ASMAtomicIncS32(&pos) - 1; 348 idx %= RT_ELEMENTS(list); 349 #endif 343 350 if ((ret = realloc( list[idx], size ))) list[idx] = ret; 344 351 return ret;
Note:
See TracChangeset
for help on using the changeset viewer.