mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
portability tweak for lock initialisation
This commit is contained in:
parent
4ebe918306
commit
793e5cd5c9
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2018-05-29 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSObject.m: avoid static initialisation macro for allocation
|
||||
locks in case some systems implement it in a way that doesn't work
|
||||
after static initialisation takes place.
|
||||
|
||||
2018-05-27 Fred Kiefer <fredkiefer@gmx.de>
|
||||
|
||||
* Tests/base/NSProcessInfo/general.m: Mark test for -systemUptime
|
||||
|
|
|
@ -1044,7 +1044,7 @@ static id gs_weak_load(id obj)
|
|||
|
||||
for (i = 0; i < LOCKCOUNT; i++)
|
||||
{
|
||||
allocationLocks[i] = PTHREAD_MUTEX_INITIALIZER;
|
||||
pthread_mutex_init(&allocationLocks[i], NULL);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue