O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NSRecursiveLock — Mac OS X 10.0

Synopsis

This class is an implementation of the NSLocking protocol that provides a lock that may be acquired multiply by a single thread without creating a deadlock condition. See Chapter 2 for more information on how locking works.

image with no caption

@interface NSRecursiveLock : NSObject <NSLocking>
                                  // Instance Methods
   - (BOOL)lockBeforeDate:(NSDate *)limit;
   - (BOOL)tryLock;
                                  // Methods Implementing NSLocking
   - (void)lock;
   - (void)unlock;

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required