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