From: Ivan Maidanski Date: Fri, 16 Jun 2017 14:48:37 +0000 (+0300) Subject: Consistently use 'msec' instead of 'ms' in comments in pthread_support X-Git-Tag: v7.6.2~136 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be502eecacf7e75255002b762b2119bfb492ea1c;p=gc 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). --- diff --git a/pthread_support.c b/pthread_support.c index 67754d0a..01db651b 100644 --- a/pthread_support.c +++ b/pthread_support.c @@ -1988,7 +1988,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. */ @@ -1998,8 +1998,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);