home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1994 June / NEBULA_SE.ISO / SourceCode / MiscKit / Headers / misckit / MiscLockFile.h < prev    next >
Encoding:
Text File  |  1994-03-23  |  807 b   |  36 lines

  1. //
  2. //    MiscLockFile.h -- a generic class to simplify keeping an atomic lock file
  3. //        Written by Don Yacktman Copyright (c) 1993 by Don Yacktman.
  4. //                Version 1.0.  All rights reserved.
  5. //        This notice may not be removed from this source code.
  6. //
  7. //    This object is included in the MiscKit by permission from the author
  8. //    and its use is governed by the MiscKit license, found in the file
  9. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  10. //    for a list of all applicable permissions and restrictions.
  11. //    
  12.  
  13. #import <appkit/appkit.h>
  14.  
  15. @interface MiscLockFile:Object <NXTransport>
  16. {
  17.     BOOL haveLock;
  18.     id lockFileName;
  19. }
  20.  
  21. - init;
  22.  
  23. - fileName;
  24. - setFileName:aString;
  25. - lock;
  26. - unlock;
  27. - (BOOL)haveLock;
  28.  
  29. - copy;
  30. - read:(NXTypedStream *)stream;
  31. - write:(NXTypedStream *)stream;
  32.  
  33. - free;
  34.  
  35. @end
  36.