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

@ -329,7 +329,7 @@ static Class runLoopClass;
handle = (GSMessageHandle*)NSAllocateObject(self, 0, NSDefaultMallocZone());
handle->desc = d;
handle->wMsgs = [NSMutableArray new];
handle->myLock = [GSLazyRecursiveLock new];
handle->myLock = [NSRecursiveLock new];
handle->valid = YES;
return AUTORELEASE(handle);
}
@ -1153,7 +1153,7 @@ typedef struct {
messagePortMap = NSCreateMapTable(NSNonRetainedObjectMapKeyCallBacks,
NSNonOwnedPointerMapValueCallBacks, 0);
messagePortLock = [GSLazyRecursiveLock new];
messagePortLock = [NSRecursiveLock new];
/* It's possible that an old process, with the same process ID as
* this one, got forcibly killed or crashed so that clean_up_sockets
@ -1265,7 +1265,7 @@ typedef struct {
((internal*)(port->_internal))->_handles
= NSCreateMapTable(NSIntegerMapKeyCallBacks,
NSObjectMapValueCallBacks, 0);
((internal*)(port->_internal))->_myLock = [GSLazyRecursiveLock new];
((internal*)(port->_internal))->_myLock = [NSRecursiveLock new];
port->_is_valid = YES;
if (shouldListen == YES)