add more lock primitives
[IRC.git] / Robust / src / Runtime / STM / stmlock.c
index 971f90262c7f16d04798f541a2f9d62150a4d4f6..05079c15c7a880b8250f97a43d4d1ade52311843 100644 (file)
@@ -3,7 +3,7 @@
 
 
 inline void initdsmlocks(volatile unsigned int *addr) {
-  (*addr) = RW_LOCK_BIAS;
+  (*addr) = SWAP_LOCK_BIAS;
 }
 
 /*
@@ -15,9 +15,9 @@ int write_trylock(volatile unsigned int *lock) {
               : "memory");
   return retval;
 }
-*/
+
 
 void write_unlock(volatile unsigned int *lock) {
   __asm __volatile__("movl $1, %0" : "+m" (*lock)::"memory");
 }
-
+*/