28} __newlib_recursive_lock_t;
30#define __NEWLIB_RECURSIVE_LOCK_INIT { (void *)0, 0, 0 }
32typedef volatile int __newlib_lock_t;
33#define __NEWLIB_LOCK_INIT 0
35typedef unsigned long int _COND_T;
36typedef __newlib_lock_t _LOCK_T;
37typedef __newlib_recursive_lock_t _LOCK_RECURSIVE_T;
39#define __LOCK_INIT(class,lock) class _LOCK_T lock = __NEWLIB_LOCK_INIT;
40#define __LOCK_INIT_RECURSIVE(class,lock) class _LOCK_RECURSIVE_T lock = __NEWLIB_RECURSIVE_LOCK_INIT;
41#define __lock_init(lock) __newlib_lock_init(&(lock))
42#define __lock_init_recursive(lock) __newlib_lock_init_recursive(&(lock))
43#define __lock_close(lock) __newlib_lock_close(&(lock))
44#define __lock_close_recursive(lock) __newlib_lock_close_recursive(&(lock))
45#define __lock_acquire(lock) __newlib_lock_acquire(&(lock))
46#define __lock_acquire_recursive(lock) __newlib_lock_acquire_recursive(&(lock))
47#define __lock_try_acquire(lock) __newlib_lock_try_acquire(&(lock))
48#define __lock_try_acquire_recursive(lock) __newlib_lock_try_acquire_recursive(&(lock))
49#define __lock_release(lock) __newlib_lock_release(&(lock))
50#define __lock_release_recursive(lock) __newlib_lock_release_recursive(&(lock))
52void __newlib_lock_init(__newlib_lock_t*);
53void __newlib_lock_close(__newlib_lock_t*);
54void __newlib_lock_acquire(__newlib_lock_t*);
55void __newlib_lock_try_acquire(__newlib_lock_t*);
56void __newlib_lock_release(__newlib_lock_t*);
58void __newlib_lock_init_recursive(__newlib_recursive_lock_t*);
59void __newlib_lock_close_recursive(__newlib_recursive_lock_t*);
60void __newlib_lock_acquire_recursive(__newlib_recursive_lock_t*);
61void __newlib_lock_try_acquire_recursive(__newlib_recursive_lock_t*);
62void __newlib_lock_release_recursive(__newlib_recursive_lock_t*);