From: bdemsky Date: Wed, 6 Aug 2008 06:01:36 +0000 (+0000) Subject: reduce the number of spins...functions that call lock are taking a long time X-Git-Tag: preEdgeChange~22 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=6e81b89a3f1e5c83c1f9e452cf36a22c24de0f05;p=IRC.git reduce the number of spins...functions that call lock are taking a long time --- 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)) {