remove questionable methods
authorbdemsky <bdemsky>
Thu, 3 Dec 2009 00:33:05 +0000 (00:33 +0000)
committerbdemsky <bdemsky>
Thu, 3 Dec 2009 00:33:05 +0000 (00:33 +0000)
Robust/src/Runtime/DSTM/interface/dsmlock.c
Robust/src/Runtime/DSTM/interface/dsmlock.h

index 0c657ce3ac22d4cb6f7b59b3e20e19fa4802949e..f9bc82e01b20320d4b6cd1b780b5b108e3607b71 100644 (file)
@@ -5,21 +5,6 @@ inline void initdsmlocks(volatile unsigned int *addr) {
   (*addr) = RW_LOCK_BIAS;
 }
 
-
-inline void readLock(volatile unsigned int *addr) {
-  __asm__ __volatile__ ("" " subl $1,(%0)\n\t"
-                        "jns 1f\n"
-                        "1:\n"
-                        :: "a" (*addr) : "memory");
-}
-
-inline void writeLock(volatile unsigned int *addr) {
-  __asm__ __volatile__ ("" " subl %1,(%0)\n\t"
-                        "jz 1f\n"
-                        "1:\n"
-                        :: "a" (*addr), "i" (RW_LOCK_BIAS) : "memory");
-}
-
 inline void atomic_dec(volatile unsigned int *v) {
   __asm__ __volatile__ (LOCK_PREFIX "decl %0"
                        : "+m" (*v));
index d1b6c0cc7514ce31b85aeb8d9cc1937fc3d49eb3..80761feebea5531f2d558c49a04828af1e5157a3 100644 (file)
@@ -19,8 +19,6 @@ typedef struct {
 } atomic_t;
 
 void initdsmlocks(volatile unsigned int *addr);
-void readLock(volatile unsigned int *addr);
-void writeLock(volatile unsigned int *addr);
 int read_trylock(volatile unsigned int *lock);
 int write_trylock(volatile unsigned int *lock);
 void atomic_dec(volatile unsigned int *v);