Skip to content

Commit

Permalink
Don't use lazy locks any more
Browse files Browse the repository at this point in the history
  • Loading branch information
rfm committed May 30, 2024
1 parent 7a98157 commit f93ca6e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Source/NSAnimation.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#import <Foundation/NSRunLoop.h>
#import <Foundation/NSThread.h>
#import <Foundation/NSValue.h>
#import <GNUstepBase/GSLock.h>
#import <Foundation/NSLock.h>

#import "AppKit/NSAnimation.h"
#import "AppKit/NSApplication.h"
Expand Down Expand Up @@ -418,7 +418,7 @@ - (id) initWithDuration: (NSTimeInterval)duration
(BOOL (*)(id,SEL,NSAnimation*)) NULL;

_isThreaded = NO;
_isAnimatingLock = [GSLazyRecursiveLock new];
_isAnimatingLock = [NSRecursiveLock new];
}
return self;
}
Expand All @@ -430,7 +430,7 @@ - (id) copyWithZone: (NSZone*)zone
c->_progressMarks = GSIArrayCopyWithZone(_progressMarks, zone);
c->_animator = nil;
c->_isANewAnimatorNeeded = YES;
c->_isAnimatingLock = [GSLazyRecursiveLock new];
c->_isAnimatingLock = [NSRecursiveLock new];
return c;
}

Expand Down
4 changes: 2 additions & 2 deletions Source/NSKeyValueBinding.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#import <Foundation/NSMapTable.h>
#import <Foundation/NSValue.h>
#import <Foundation/NSValueTransformer.h>
#import <GNUstepBase/GSLock.h>
#import <Foundation/NSLock.h>

#import "AppKit/NSKeyValueBinding.h"
#import "GSBindingHelpers.h"
Expand Down Expand Up @@ -145,7 +145,7 @@ + (void) initialize
{
if (self == [GSKeyValueBinding class])
{
bindingLock = [GSLazyRecursiveLock new];
bindingLock = [NSRecursiveLock new];
classTable = NSCreateMapTable(NSNonOwnedPointerMapKeyCallBacks,
NSObjectMapValueCallBacks, 128);
objectTable = NSCreateMapTable(NSNonRetainedObjectMapKeyCallBacks,
Expand Down

0 comments on commit f93ca6e

Please sign in to comment.