mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Fix typo in code branch for platforms without pthread_spin_lock().
Check for value of HAVE_PTHREAD_SPIN_LOCK instead of whether the macro is defined.
This commit is contained in:
parent
ed286536e2
commit
0e6865a3fd
2 changed files with 9 additions and 2 deletions
|
@ -37,7 +37,7 @@
|
|||
|
||||
// Dummy implementatation
|
||||
// cleaner than IFDEF'ing the code everywhere
|
||||
#ifndef HAVE_PTHREAD_SPIN_LOCK
|
||||
#if !(HAVE_PTHREAD_SPIN_LOCK)
|
||||
#warning no spin_locks, using dummy versions
|
||||
typedef int pthread_spinlock_t;
|
||||
int pthread_spin_init(pthread_spinlock_t *lock, int pshared
|
||||
|
@ -51,7 +51,7 @@ int pthread_spin_lock(pthread_spinlock_t *lock)
|
|||
}
|
||||
int pthread_spin_unlock(pthread_spinlock_t *lock)
|
||||
{
|
||||
return 0;c
|
||||
return 0;
|
||||
}
|
||||
int pthread_spin_destroy(pthread_spinlock_t *lock)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue