Ticket #2575: 2575.patch
File 2575.patch, 910 bytes (added by , 11 years ago) |
---|
-
thread_primitives.hpp
315 315 extern "C" unsigned char _interlockedbittestandreset(volatile long *a,long b); 316 316 #endif 317 317 318 #if !defined(_M_IA64) 318 319 #pragma intrinsic(_interlockedbittestandset) 319 320 #pragma intrinsic(_interlockedbittestandreset) 320 321 … … 327 328 { 328 329 return _interlockedbittestandreset(x,bit)!=0; 329 330 } 331 #else 332 inline bool interlocked_bit_test_and_set(long* x,long bit) 333 { 334 return InterlockedBitTestAndSet(x,bit)!=0; 335 } 330 336 337 inline bool interlocked_bit_test_and_reset(long* x,long bit) 338 { 339 return InterlockedBitTestAndReset(x,bit)!=0; 340 } 341 #endif 331 342 } 332 343 } 333 344 }