public inbox for pthreads-win32@sourceware.org
 help / color / mirror / Atom feed
From: Jason Nye <jnye@nbnet.nb.ca>
To: Ross Johnson <rpj@ise.canberra.edu.au>
Cc: 'Pthreads-win32' <pthreads-win32@sourceware.cygnus.com>
Subject: Re: asynchronous cancellation
Date: Wed, 17 Nov 1999 04:46:00 -0000	[thread overview]
Message-ID: <3832A3C4.9136C0B3@nbnet.nb.ca> (raw)
In-Reply-To: <Pine.LNX.4.05.9911171352420.256-100000@swan.canberra.edu.au>

Just thought I'd point out a mistake I made in my code I showed you. The 

   if (::WaitForSingleObject(hThread, 0) != WAIT_TIMEDOUT)

line should be

   if (::WaitForSingleObject(hThread, 0) == WAIT_TIMEDOUT)

You want to time out on the wait -- it means the thread is still
running.

Cheers.
Jason

  reply	other threads:[~1999-11-17  4:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-12 18:08 Jason Nye
1999-11-16 19:17 ` Ross Johnson
1999-11-17  4:46   ` Jason Nye [this message]
1999-11-15  7:45 Bossom, John
1999-11-16  1:30 ` Ross Johnson
1999-11-16 13:11   ` Jason Nye
1999-11-16 14:40 Bossom, John

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3832A3C4.9136C0B3@nbnet.nb.ca \
    --to=jnye@nbnet.nb.ca \
    --cc=pthreads-win32@sourceware.cygnus.com \
    --cc=rpj@ise.canberra.edu.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).