]> granicus.if.org Git - gc/commitdiff
Consistently use 'msec' instead of 'ms' in comments in pthread_support
authorIvan Maidanski <ivmai@mail.ru>
Fri, 16 Jun 2017 14:48:37 +0000 (17:48 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 2 Jul 2017 06:32:45 +0000 (09:32 +0300)
* 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

index 67754d0acd806116f2cdc7692e6ea577904c3aa9..01db651b4cd479778e5fd348e176d142d22b0a5d 100644 (file)
@@ -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);