From 127bf3c28992d90a3ffe2f981156962e786f6670 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 16 Jun 2017 17:48:37 +0300 Subject: [PATCH] Consistently use 'msec' instead of 'ms' in comments in pthread_support * pthread_support.c [USE_SPIN_LOCK] (GC_lock): Replace "ms" with "msecs" in comment; put a space between number and "msec" (in comment). --- pthread_support.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pthread_support.c b/pthread_support.c index e0a87422..37c6e0bb 100644 --- a/pthread_support.c +++ b/pthread_support.c @@ -1906,7 +1906,7 @@ yield: # define SLEEP_THRESHOLD 12 /* Under Linux very short sleeps tend to wait until */ /* the current time quantum expires. On old Linux */ - /* kernels nanosleep(<= 2ms) just spins under Linux. */ + /* kernels nanosleep (<= 2 msecs) just spins. */ /* (Under 2.4, this happens only for real-time */ /* processes.) We want to minimize both behaviors */ /* here. */ @@ -1916,8 +1916,8 @@ yield: struct timespec ts; if (i > 24) i = 24; - /* Don't wait for more than about 15msecs, even */ - /* under extreme contention. */ + /* Don't wait for more than about 15 msecs, */ + /* even under extreme contention. */ ts.tv_sec = 0; ts.tv_nsec = 1 << i; nanosleep(&ts, 0); -- 2.40.0