summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixThrd.c
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)
commit5c4acfb73ff5ff83d7973ef9964c23013f00800c (patch)
tree20c9de9f1c2e752dd88a9b72587bf820ee190968 /unix/tclUnixThrd.c
parent0f3896176d1b6f8a8273e94fe6c1b65648731a4c (diff)
downloadtcl-5c4acfb73ff5ff83d7973ef9964c23013f00800c.zip
tcl-5c4acfb73ff5ff83d7973ef9964c23013f00800c.tar.gz
tcl-5c4acfb73ff5ff83d7973ef9964c23013f00800c.tar.bz2
The unit for usleep() is microseconds, not milliseconds.
Diffstat (limited to 'unix/tclUnixThrd.c')
-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