reduce the number of spins...functions that call lock are taking a long time
[IRC.git] / 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)) {