diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-09-24 18:24:35 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-09-24 18:24:35 -0700 |
commit | fc5e362786d32216800bacc09bd44c13afbcfdbf (patch) | |
tree | c79424dfb8cbeaa92cb0935b22914d7179477532 /system/include/sys/lock.h | |
parent | 2f11f2e15392069a3c4a72fef2358fbf722b4e0e (diff) |
additional headers
Diffstat (limited to 'system/include/sys/lock.h')
-rw-r--r-- | system/include/sys/lock.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/system/include/sys/lock.h b/system/include/sys/lock.h new file mode 100644 index 00000000..9075e35c --- /dev/null +++ b/system/include/sys/lock.h @@ -0,0 +1,24 @@ +#ifndef __SYS_LOCK_H__ +#define __SYS_LOCK_H__ + +/* dummy lock routines for single-threaded aps */ + +typedef int _LOCK_T; +typedef int _LOCK_RECURSIVE_T; + +#include <_ansi.h> + +#define __LOCK_INIT(class,lock) static int lock = 0; +#define __LOCK_INIT_RECURSIVE(class,lock) static int lock = 0; +#define __lock_init(lock) (_CAST_VOID 0) +#define __lock_init_recursive(lock) (_CAST_VOID 0) +#define __lock_close(lock) (_CAST_VOID 0) +#define __lock_close_recursive(lock) (_CAST_VOID 0) +#define __lock_acquire(lock) (_CAST_VOID 0) +#define __lock_acquire_recursive(lock) (_CAST_VOID 0) +#define __lock_try_acquire(lock) (_CAST_VOID 0) +#define __lock_try_acquire_recursive(lock) (_CAST_VOID 0) +#define __lock_release(lock) (_CAST_VOID 0) +#define __lock_release_recursive(lock) (_CAST_VOID 0) + +#endif /* __SYS_LOCK_H__ */ |