home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / mach / m68k / simple_lock.h < prev    next >
Text File  |  1992-07-29  |  742b  |  31 lines

  1. /* Copyright (c) 1991 NeXT Computer, Inc.  All rights reserv&Cp * 
  2.  *    File:    mach/m68k/simple_lock.h
  3.  *
  4.  *    This file contains machine dependent code for exclusion
  5.  *    lock handling on NeXT 68K-based products.
  6.  *
  7.  * HISTORY
  8.  * 20-May-91  Mike DeMoney (mike@next.com)
  9.  *    Created.
  10.  */
  11.  
  12. #ifndef    _MACH_M68K_SIMPLE_LOCK_
  13. #define _MACH_M68K_SIMPLE_LOCK_
  14.  
  15. struct slock {
  16.     int        lock_data;    /* in general 1 bit is sufficient */
  17. };
  18.  
  19. typedef struct slock    simple_lock_data_t;
  20. typedef struct slock    *simple_lock_t;
  21.  
  22. extern simple_lock_t    simple_lock_alloc();
  23. extern void        simple_lock_free();
  24.  
  25. extern void        (simple_lock_init)();
  26. extern void        (simple_lock)();
  27. extern void        (simple_unlock)();
  28. extern boolean_t    (simple_lock_try)();
  29.  
  30. #endif    _MACH_M68K_SIMPLE_LOCK_
  31.