• Vasil Dimov's avatar
    Fix a potential bug when using __sync_lock_test_and_set() · 51cdf595
    Vasil Dimov authored
    TYPE __sync_lock_test_and_set (TYPE *ptr, TYPE value, ...)
    
    it is not documented what happens if the two arguments are of different
    type like it was before: the first one was lock_word_t (byte) and the
    second one was 1 or 0 (int).
    
    Approved by:	Marko (via IRC)
    51cdf595
os0sync.h 14.9 KB