home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / sml_nj / 93src.lha / src / runtime / sync.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-09  |  376 b   |  16 lines

  1. /* sync.h
  2.  *
  3.  * COPYRIGHT (c) 1990 by AT&T Bell Laboratories.
  4.  *
  5.  * Interface for synchronization primitives
  6.  */
  7. #ifndef _SYNCHRONIZATION_
  8. #define _SYNCHRONIZATION_
  9.  
  10. typedef unsigned int *spin_lock_t;
  11. extern void        sync_init ();
  12. extern spin_lock_t runtime_spin_lock();
  13. extern int         try_spin_lock();
  14. extern void        spin_unlock();
  15. #endif /* !_SYNCHRONIZATION_ */
  16.