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 | 5c4acfb73ff5ff83d7973ef9964c23013f00800c (patch) | |
tree | 20c9de9f1c2e752dd88a9b72587bf820ee190968 /unix/tclUnixThrd.c | |
parent | 0f3896176d1b6f8a8273e94fe6c1b65648731a4c (diff) | |
download | tcl-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.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 |