summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libthr/thread/thr_private.h')
-rw-r--r--lib/libthr/thread/thr_private.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libthr/thread/thr_private.h b/lib/libthr/thread/thr_private.h
index 9b118b9..3260c9b 100644
--- a/lib/libthr/thread/thr_private.h
+++ b/lib/libthr/thread/thr_private.h
@@ -83,20 +83,20 @@
/*
* Locking macros
*/
-#define THR_LOCK(m) \
+#define UMTX_LOCK(m) \
do { \
if (umtx_lock((m), curthread->thr_id) != 0) \
abort(); \
} while (0)
-#define THR_TRYLOCK(m, r) \
+#define UMTX_TRYLOCK(m, r) \
do { \
(r) = umtx_trylock((m), curthread->thr_id); \
if ((r) != 0 && (r) != EBUSY) \
abort(); \
} while (0)
-#define THR_UNLOCK(m) \
+#define UMTX_UNLOCK(m) \
do { \
if (umtx_unlock((m), curthread->thr_id) != 0) \
abort(); \
OpenPOWER on IntegriCloud