From 6e81b89a3f1e5c83c1f9e452cf36a22c24de0f05 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Wed, 6 Aug 2008 06:01:36 +0000 Subject: [PATCH] reduce the number of spins...functions that call lock are taking a long time --- Robust/src/Runtime/DSTM/interface/sockpool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Robust/src/Runtime/DSTM/interface/sockpool.c b/Robust/src/Runtime/DSTM/interface/sockpool.c index 85edcf2f..91ac3fc0 100644 --- a/Robust/src/Runtime/DSTM/interface/sockpool.c +++ b/Robust/src/Runtime/DSTM/interface/sockpool.c @@ -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)) { -- 2.34.1