commit | c54b8b69ede9d92e802baa1163d9cd734b034fb4 | [log] [tgz] |
---|---|---|
author | rsc <devnull@localhost> | Fri Jan 27 05:51:54 2006 +0000 |
committer | rsc <devnull@localhost> | Fri Jan 27 05:51:54 2006 +0000 |
tree | 7b36e7792b73a8ed5c8f2373a346efa5b1735d5f | |
parent | bc5d57712754818a2320a385afbf1c0c9558a4b3 [diff] [blame] |
bsd
diff --git a/src/libthread/BSD.c b/src/libthread/BSD.c index fdbc712..b9e8888 100644 --- a/src/libthread/BSD.c +++ b/src/libthread/BSD.c
@@ -33,7 +33,7 @@ for(i=0; i<1000; i++){ if(!_tas(&l->held)) return 1; - sched_yield(); + sleep(0); } /* increasingly slow */ for(i=0; i<10; i++){