home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2 / Openstep-4.2-Intel-Developer.iso / NextLibrary / Frameworks / Foundation.framework / Versions / B / Headers / NSDistributedLock.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-25  |  469 b   |  28 lines

  1. /*    NSDistributedLock.h
  2.     Basic file-system-based lock
  3.     Copyright 1995-1996, NeXT Software, Inc.  All rights reserved.
  4. */
  5.  
  6. #if !defined(STRICT_OPENSTEP)
  7.  
  8. #import <Foundation/NSObject.h>
  9.  
  10. @class NSDate;
  11.  
  12. @interface NSDistributedLock : NSObject {
  13.     void *_priv;
  14. }
  15.  
  16. + (NSDistributedLock *)lockWithPath:(NSString *)path;  
  17.  
  18. - (id)initWithPath:(NSString *)path;
  19.  
  20. - (BOOL)tryLock;
  21. - (void)unlock;
  22. - (void)breakLock;
  23. - (NSDate *)lockDate;
  24.  
  25. @end
  26.  
  27. #endif /* !STRICT_OPENSTEP */
  28.