src/atomic/SDL_spinlock.c
changeset 8991 13b0df1793e8
parent 8979 1e283b7a1580
child 9619 b94b6d0bff0f
     1.1 --- a/src/atomic/SDL_spinlock.c	Mon Jul 07 21:21:05 2014 -0700
     1.2 +++ b/src/atomic/SDL_spinlock.c	Mon Jul 07 21:27:42 2014 -0700
     1.3 @@ -89,10 +89,6 @@
     1.4      /* Maybe used for PowerPC, but the Intel asm or gcc atomics are favored. */
     1.5      return OSAtomicCompareAndSwap32Barrier(0, 1, lock);
     1.6  
     1.7 -#elif HAVE_PTHREAD_SPINLOCK
     1.8 -    /* pthread instructions */
     1.9 -    return (pthread_spin_trylock(lock) == 0);
    1.10 -
    1.11  #elif defined(__SOLARIS__) && defined(_LP64)
    1.12      /* Used for Solaris with non-gcc compilers. */
    1.13      return (SDL_bool) ((int) atomic_cas_64((volatile uint64_t*)lock, 0, 1) == 0);
    1.14 @@ -126,9 +122,6 @@
    1.15  #elif HAVE_GCC_ATOMICS || HAVE_GCC_SYNC_LOCK_TEST_AND_SET
    1.16      __sync_lock_release(lock);
    1.17  
    1.18 -#elif HAVE_PTHREAD_SPINLOCK
    1.19 -    pthread_spin_unlock(lock);
    1.20 -
    1.21  #elif defined(__SOLARIS__)
    1.22      /* Used for Solaris when not using gcc. */
    1.23      *lock = 0;