]> granicus.if.org Git - gc/commitdiff
Refine flags field comment in pthread_support.h
authorIvan Maidanski <ivmai@mail.ru>
Fri, 12 Apr 2019 16:51:02 +0000 (19:51 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 12 Apr 2019 16:51:02 +0000 (19:51 +0300)
* include/private/pthread_support.h (GC_Thread_Rep.flags): Add comment
that the field is accessed only by the GC lock owner.

include/private/pthread_support.h

index 2dc1541ac2b02be9e0d4e74f436b021fc24e5d7b..8e4bccf7a740cfcbda2886b4a530ddd40798f220 100644 (file)
@@ -71,7 +71,7 @@ typedef struct GC_Thread_Rep {
       volatile AO_t suspended_ext;  /* Thread was suspended externally. */
 #   endif
 
-    unsigned char flags;
+    unsigned char flags;        /* Protected by GC lock.                */
 #       define FINISHED 1       /* Thread has exited.                   */
 #       define DETACHED 2       /* Thread is treated as detached.       */
                                 /* Thread may really be detached, or    */