diff options
Diffstat (limited to 'sys/lock.h')
| -rw-r--r-- | sys/lock.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/lock.h b/sys/lock.h new file mode 100644 index 0000000..3592ea1 --- /dev/null +++ b/sys/lock.h @@ -0,0 +1,11 @@ +#ifndef _JOVE_x86_64_LOCK_H +#define _JOVE_x86_64_LOCK_H 1 + +#include <stdatomic.h> + +void take_mutex(atomic_flag *lock); +int try_take_mutex(atomic_flag *lock); + +void release_mutex(atomic_flag *lock); + +#endif |
