mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +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
|
@ -1,3 +1,10 @@
|
|||
2018-05-20 Ivan Vucica <ivan@vucica.net>
|
||||
|
||||
* Source/NSThread.m:
|
||||
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.
|
||||
|
||||
2018-05-18 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Tools/gdnc.m: Remove a little unused code
|
||||
|
|
|
@ -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…
Reference in a new issue