Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-04-04 10:03:52 +0400
committerChristopher Faylor <me@cgf.cx>2003-04-04 10:03:52 +0400
commit8aed2a11a8b03e1fc06408387fc384937e3f2230 (patch)
tree49b60436297ef6e9d49ad616c449eb9d02d40826
parentb410f1680ffb26c9c3f972a2f33acc0d4e2fe30c (diff)
add comments
-rw-r--r--winsup/cygwin/cygthread.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/cygthread.cc b/winsup/cygwin/cygthread.cc
index 4ed0d52cf..f7df503aa 100644
--- a/winsup/cygwin/cygthread.cc
+++ b/winsup/cygwin/cygthread.cc
@@ -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;