Ticket #2575: 2575.patch

File 2575.patch, 910 bytes (added by viboes, 11 years ago)

patch respect to trunk

  • thread_primitives.hpp

     
    315315            extern "C" unsigned char _interlockedbittestandreset(volatile long *a,long b);
    316316#endif
    317317
     318#if !defined(_M_IA64)
    318319#pragma intrinsic(_interlockedbittestandset)
    319320#pragma intrinsic(_interlockedbittestandreset)
    320321
     
    327328            {
    328329                return _interlockedbittestandreset(x,bit)!=0;
    329330            }
     331#else
     332            inline bool interlocked_bit_test_and_set(long* x,long bit)
     333            {
     334                return  InterlockedBitTestAndSet(x,bit)!=0;
     335            }
    330336
     337            inline bool interlocked_bit_test_and_reset(long* x,long bit)
     338            {
     339                return  InterlockedBitTestAndReset(x,bit)!=0;
     340            }
     341#endif
    331342        }
    332343    }
    333344}