portability tweak for lock initialisation

This commit is contained in:
Richard Frith-Macdonald 2018-05-29 10:36:50 +01:00
parent 4ebe918306
commit 793e5cd5c9
2 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -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