~ubuntu-branches/ubuntu/trusty/gnustep-base/trusty

« back to all changes in this revision

Viewing changes to Source/NSDistributedLock.m

Tags: upstream-1.11.2
ImportĀ upstreamĀ versionĀ 1.11.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
   You should have received a copy of the GNU Library General Public
20
20
   License along with this library; if not, write to the Free
21
 
   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
 
21
   Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
22
22
 
23
23
   <title>NSDistributedLock class reference</title>
24
 
   $Date: 2005/02/22 11:22:44 $ $Revision: 1.20 $
 
24
   $Date: 2005/11/06 13:53:39 $ $Revision: 1.22 $
25
25
   */
26
26
 
27
27
#include "config.h"
97
97
}
98
98
 
99
99
/**
100
 
 * Initialises the reciever with the specified filesystem path.<br />
 
100
 * Initialises the receiver with the specified filesystem path.<br />
101
101
 * The location in the filesystem must be accessible for this
102
102
 * to be usable.  That is, the processes using the lock must be able
103
103
 * to access, create, and destroy files at the path.<br />
143
143
}
144
144
 
145
145
/**
146
 
 * Returns the date at which the lock was aquired by <em>any</em>
 
146
 * Returns the date at which the lock was acquired by <em>any</em>
147
147
 * NSDistributedLock using the same path.  If nothing has
148
148
 * the lock, this returns nil.
149
149
 */
156
156
}
157
157
 
158
158
/**
159
 
 * Attempt to aquire the lock and return YES on success, NO on failure.<br />
 
159
 * Attempt to acquire the lock and return YES on success, NO on failure.<br />
160
160
 * May raise an NSGenericException if a problem occurs.
161
161
 */
162
162
- (BOOL) tryLock