1
0

lock.h 363 B

1234567891011121314151617181920212223242526
  1. #ifndef __LOCK_H
  2. #define __LOCK_H
  3. #ifndef _LOCK_EXTENSION
  4. This header file is not defined in ANSI/POSIX
  5. #endif
  6. #pragma lib "/$M/lib/ape/libap.a"
  7. typedef struct
  8. {
  9. int val;
  10. } Lock;
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. extern void lock(Lock*);
  15. extern void unlock(Lock*);
  16. extern int canlock(Lock*);
  17. extern int tas(int*);
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #endif