projects
/
IRC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
reduce the number of spins...functions that call lock are taking a long time
[IRC.git]
/
Robust
/
src
/
Runtime
/
DSTM
/
interface
/
sockpool.c
diff --git
a/Robust/src/Runtime/DSTM/interface/sockpool.c
b/Robust/src/Runtime/DSTM/interface/sockpool.c
index 85edcf2f07da6068415112fd273df701e24db650..91ac3fc0a1d6b27f74118795bc7dc83f9b803e5c 100644
(file)
--- 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 100
0
+#define MAXSPINS 100
inline void Lock(volatile unsigned int *s) {
while(test_and_set(s)) {