mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 01:31:08 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9631 72102866-910b-0410-8b05-ffd578937521
57 lines
1.8 KiB
HTML
57 lines
1.8 KiB
HTML
<html><head>
|
|
<title>NSRecursiveLock</title>
|
|
</head>
|
|
<body>
|
|
<a href ="NSProxy.html">[Previous]</a>
|
|
<a href ="Base.html">[Up]</a>
|
|
<a href ="NSRunLoop.html">[Next]</a>
|
|
<h1>NSRecursiveLock</h1>
|
|
<h3>Authors </h3>
|
|
<dl>
|
|
<dt><a href ="http://www.gnustep.org/developers/whoiswho.html">Adam Fedor</a>
|
|
<dd>
|
|
</dl>
|
|
<p>Version: $Revision$</p>
|
|
<p>Date: $Date$</p>
|
|
<h2><a name ="cont-0">NSRecursiveLock</a></h2>
|
|
<h2><a name ="NSRecursiveLock">NSRecursiveLock</a></h2>
|
|
<p><b>Declared in: </b> Foundation/NSLock.h</p>
|
|
<p><b>Inherits from: </b> NSObject</p>
|
|
<p><b>Conforms to: </b> NSLocking
|
|
</p>
|
|
<hr>
|
|
|
|
See NSLock for more information about what a lock is. A recursive
|
|
lock extends NSLock in that you can lock a recursive lock multiple
|
|
times. Each lock must be balanced by a cooresponding unlock, and the
|
|
lock is not released for another thread to aquire until the last
|
|
unlock call is made (cooresponding to the fist lock message).
|
|
|
|
<h2>Instance Variables </h2>
|
|
<ul>
|
|
</ul>
|
|
<h2>Methods </h2>
|
|
<ul>
|
|
<li><a href ="NSRecursiveLock.html#method-0">-lockBeforeDate:</a>
|
|
<li><a href ="NSRecursiveLock.html#method-1">-tryLock</a>
|
|
</ul>
|
|
<hr><h2>Instances Methods </h2>
|
|
<h3><a name ="method-0">lockBeforeDate:</a></h3>
|
|
- (BOOL) <b>lockBeforeDate:</b> (NSDate*)limit;<br>
|
|
|
|
Attempts to aquire a lock before the date limit passes. It returns
|
|
YES if it can. It returns NO if it cannot
|
|
(but it waits until the time limit is up before returning NO).
|
|
|
|
<hr>
|
|
<h3><a name ="method-1">tryLock</a></h3>
|
|
- (BOOL) <b>tryLock</b>;<br>
|
|
|
|
Attempts to aquire a lock, but returns NO immediately if the lock
|
|
cannot be aquired. It returns YES if the lock is aquired. Can be
|
|
called multiple times to make nested locks.
|
|
|
|
<hr>
|
|
</body>
|
|
|
|
</html>
|