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

@ -204,7 +204,7 @@ static NSRecursiveLock *classLock = nil;
{
if (self == [NSLocale class])
{
classLock = [GSLazyRecursiveLock new];
classLock = [NSRecursiveLock new];
[[NSObject leakAt: &classLock] release];
allLocales = [[NSMutableDictionary alloc] initWithCapacity: 0];
[[NSObject leakAt: &allLocales] release];