blob: 9b26bcdc0bef87b07a41af262d4e601ab084f974 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#ifndef ATOMIC__H
#define ATOMIC__H
typedef volatile intptr_t atomic_t;
#ifdef __cplusplus
#define EXTERN_C extern "C"
#else
#define EXTERN_C
#endif
EXTERN_C void acquire_lock(atomic_t *lock);
EXTERN_C void release_lock(atomic_t *lock);
#endif
|