summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Mistachkin <joe@mistachkin.com>2015-06-08 20:56:50 (GMT)
committerJoe Mistachkin <joe@mistachkin.com>2015-06-08 20:56:50 (GMT)
commitbd5043a0eea076716ef8b53a0985464965165bd9 (patch)
tree20c9de9f1c2e752dd88a9b72587bf820ee190968
parentd11070555bb8b7b4cca3a96325450bd3a42c7aaf (diff)
downloadtcl-bd5043a0eea076716ef8b53a0985464965165bd9.zip
tcl-bd5043a0eea076716ef8b53a0985464965165bd9.tar.gz
tcl-bd5043a0eea076716ef8b53a0985464965165bd9.tar.bz2
The unit for usleep() is microseconds, not milliseconds.
-rw-r--r--unix/tclUnixThrd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c
index 3963f84..02f18b8 100644
--- a/unix/tclUnixThrd.c
+++ b/unix/tclUnixThrd.c
@@ -530,7 +530,7 @@ retry:
* to yield to other threads for a while.
*/
#ifdef HAVE_USLEEP
- usleep(TCL_MUTEX_LOCK_SLEEP_TIME);
+ usleep(TCL_MUTEX_LOCK_SLEEP_TIME * 1000);
#else
Tcl_Sleep(TCL_MUTEX_LOCK_SLEEP_TIME);
#endif