summaryrefslogtreecommitdiff
path: root/implement.h
diff options
context:
space:
mode:
authorrpj <rpj>2001-07-05 17:04:39 +0000
committerrpj <rpj>2001-07-05 17:04:39 +0000
commit7a3104dc65b469cbb9c88b6a9c7b7bea4126a43e (patch)
tree524cc0af0d3fa262c2412cdda269185059b33c33 /implement.h
parentec27b9c8303540de6b5a8ebefee114f3cdd436f0 (diff)
Fixups to last commit.
Diffstat (limited to 'implement.h')
-rw-r--r--implement.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/implement.h b/implement.h
index 34055dd..8d19406 100644
--- a/implement.h
+++ b/implement.h
@@ -136,8 +136,9 @@ struct sem_t_ {
#define PTW32_OBJECT_AUTO_INIT ((void *) -1)
#define PTW32_OBJECT_INVALID NULL
-#define PTW32_SPIN_UNLOCKED ((void *) 1)
-#define PTW32_SPIN_LOCKED ((void *) 2)
+#define PTW32_SPIN_UNLOCKED (1)
+#define PTW32_SPIN_LOCKED (2)
+#define PTW32_SPIN_INTERLOCK_MASK (~3L)
struct pthread_mutex_t_ {
LONG lock_idx;