home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 (Developer) / NS_dev_3.2.iso / NextDeveloper / Headers / mach / m68k / simple_lock.h < prev    next >
C/C++ Source or Header  |  1993-10-19  |  742b  |  32 lines

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