lock.h 259 B

123456789101112131415161718
  1. #pragma once
  2. #include <time.h>
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. typedef int _lock_t;
  7. void _lock_acquire(_lock_t *lock);
  8. void _lock_close(_lock_t *lock);
  9. void _lock_init(_lock_t *lock);
  10. void _lock_release(_lock_t *lock);
  11. #ifdef __cplusplus
  12. }
  13. #endif