diff options
author | Joe Mistachkin <joe@mistachkin.com> | 2015-06-08 20:56:50 (GMT) |
---|---|---|
committer | Joe Mistachkin <joe@mistachkin.com> | 2015-06-08 20:56:50 (GMT) |
commit | bd5043a0eea076716ef8b53a0985464965165bd9 (patch) | |
tree | 20c9de9f1c2e752dd88a9b72587bf820ee190968 /unix | |
parent | d11070555bb8b7b4cca3a96325450bd3a42c7aaf (diff) | |
download | tcl-bd5043a0eea076716ef8b53a0985464965165bd9.zip tcl-bd5043a0eea076716ef8b53a0985464965165bd9.tar.gz tcl-bd5043a0eea076716ef8b53a0985464965165bd9.tar.bz2 |
The unit for usleep() is microseconds, not milliseconds.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tclUnixThrd.c | 2 |
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 |