Use standard locks rathere than obsolete lazy lock classes

This commit is contained in:
Richard Frith-Macdonald 2018-04-10 14:59:35 +01:00
parent 6c3d99ea3f
commit 3ced3237e8
17 changed files with 63 additions and 36 deletions

View file

@ -74,8 +74,8 @@
} while (0);
#if defined(_REENTRANT)
# define THE_LOCK GSLazyRecursiveLock *lock
# define CREATELOCK(x) x->lock = [GSLazyRecursiveLock new]
# define THE_LOCK NSRecursiveLock *lock
# define CREATELOCK(x) x->lock = [NSRecursiveLock new]
# define LOCK(x) [x->lock lock]
# define UNLOCK(x) [x->lock unlock]
# define DESTROYLOCK(x) DESTROY(x->lock)