OSDN Git Service

add comments
authorcgf <cgf>
Fri, 4 Apr 2003 06:03:52 +0000 (06:03 +0000)
committercgf <cgf>
Fri, 4 Apr 2003 06:03:52 +0000 (06:03 +0000)
winsup/cygwin/cygthread.cc

index 4ed0d52..f7df503 100644 (file)
@@ -149,9 +149,10 @@ new (size_t)
        goto out;
       }
     else if (info->id)
-      InterlockedExchange ((LPLONG) &info->avail, 0);
+      InterlockedExchange ((LPLONG) &info->avail, 0);  /* Not available yet */
     else
       {
+       /* Available as soon as thread is created */
        info->h = CreateThread (&sec_none_nih, 0, cygthread::stub, info,
                                CREATE_SUSPENDED, &info->id);
        goto out;