locking updates (fine grained locking rather than global lock)

This commit is contained in:
rfm 2024-05-30 10:40:52 +01:00
parent 430629b097
commit 241e2a47ca
24 changed files with 176 additions and 732 deletions

View file

@ -3100,7 +3100,7 @@ GSPrivateNativeCStringEncoding()
char *old;
/* Take it from the system locale information. */
[gnustep_global_lock lock];
[GSPrivateGlobalLock() lock];
/* Initialise locale system by setting current locale from
* environment and then resetting it. Must be done before
* any call to nl_langinfo()
@ -3111,7 +3111,7 @@ GSPrivateNativeCStringEncoding()
}
strncpy(encbuf, nl_langinfo(CODESET), sizeof(encbuf)-1);
encbuf[sizeof(encbuf)-1] = '\0';
[gnustep_global_lock unlock];
[GSPrivateGlobalLock() unlock];
#else
encbuf[0] = '\0';
#endif