reduce the number of spins...functions that call lock are taking a long time
authorbdemsky <bdemsky>
Wed, 6 Aug 2008 06:01:36 +0000 (06:01 +0000)
committerbdemsky <bdemsky>
Wed, 6 Aug 2008 06:01:36 +0000 (06:01 +0000)
Robust/src/Runtime/DSTM/interface/sockpool.c

index 85edcf2f07da6068415112fd273df701e24db650..91ac3fc0a1d6b27f74118795bc7dc83f9b803e5c 100644 (file)
@@ -21,7 +21,7 @@ inline void UnLock(volatile unsigned int *addr) {
 #   error need implementation of test_and_set
 #endif
 
-#define MAXSPINS 1000
+#define MAXSPINS 100
 
 inline void Lock(volatile unsigned int *s) {
   while(test_and_set(s)) {