summaryrefslogtreecommitdiff
path: root/src/threads/_enums.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/threads/_enums.c')
-rw-r--r--src/threads/_enums.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/threads/_enums.c b/src/threads/_enums.c
new file mode 100644
index 00000000..6e099b0f
--- /dev/null
+++ b/src/threads/_enums.c
@@ -0,0 +1,16 @@
+enum {
+ mtx_plain = 1 << 0,
+ mtx_recursive = 1 << 1,
+ mtx_timed = 1 << 2,
+};
+
+enum {
+ mtx_timedout = 1 << 3
+};
+
+enum {
+ thrd_success = 0,
+ thrd_busy = 1,
+ thrd_error = 2,
+ thrd_nomem = 3,
+};