From bd5043a0eea076716ef8b53a0985464965165bd9 Mon Sep 17 00:00:00 2001 From: Joe Mistachkin Date: Mon, 8 Jun 2015 20:56:50 +0000 Subject: The unit for usleep() is microseconds, not milliseconds. --- unix/tclUnixThrd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v0.12