4 Copyright (C) 1995, 1996 Ovidiu Predescu and Mircea Oancea.
7 Author: Mircea Oancea <mircea@jupiter.elcom.pub.ro>
9 This file is part of libFoundation.
11 Permission to use, copy, modify, and distribute this software and its
12 documentation for any purpose and without fee is hereby granted, provided
13 that the above copyright notice appear in all copies and that both that
14 copyright notice and this permission notice appear in supporting
17 We disclaim all warranties with regard to this software, including all
18 implied warranties of merchantability and fitness, in no event shall
19 we be liable for any special, indirect or consequential damages or any
20 damages whatsoever resulting from loss of use, data or profits, whether in
21 an action of contract, negligence or other tortious action, arising out of
22 or in connection with the use or performance of this software.
25 #ifndef __NSDistributedLock_h__
26 #define __NSDistributedLock_h__
28 #include <Foundation/NSObject.h>
33 @interface NSDistributedLock : NSObject
39 // Creating an NSDistributedLock
40 + (NSDistributedLock *)lockWithPath:(NSString *)aPath;
41 - (NSDistributedLock *)initWithPath:(NSString *)aPath;
46 // Relinquishing a lock
50 // Getting lock information
53 @end /* NSDistributedLock */
55 #endif /* __NSDistributedLock_h__ */