1 #ifndef __SYS_LOCK_H__ 2 #define __SYS_LOCK_H__ 3 4 /* dummy lock routines for single-threaded aps */ 5 6 typedef int _LOCK_T; 7 typedef int _LOCK_RECURSIVE_T; 8 9 #define __LOCK_INIT(class,lock) static int lock = 0; 10 #define __LOCK_INIT_RECURSIVE(class,lock) static int lock = 0; 11 #define __lock_init(lock) (0) 12 #define __lock_init_recursive(lock) (0) 13 #define __lock_close(lock) (0) 14 #define __lock_close_recursive(lock) (0) 15 #define __lock_acquire(lock) (0) 16 #define __lock_acquire_recursive(lock) (0) 17 #define __lock_try_acquire(lock) (0) 18 #define __lock_try_acquire_recursive(lock) (0) 19 #define __lock_release(lock) (0) 20 #define __lock_release_recursive(lock) (0) 21 22 #endif /* __SYS_LOCK_H__ */ 23