This is the mail archive of the
mailing list for the pthreas-win32 project.
RE: Way to wake up sleeping threads?
- From: "Bossom, John" <John dot Bossom at Cognos dot COM>
- To: 'Roy Riggs' <rriggs at edgenet dot com>, pthreads-win32 at sources dot redhat dot com
- Date: Fri, 10 Jan 2003 14:21:50 -0500
- Subject: RE: Way to wake up sleeping threads?
What do you mean by "sleeping"?
If you are blocked on a socket, then use a timeout for the
socket and check a flag to see if you should quit, else, block
on the socket again.
Otherwise, use a synchronization object, such as a semaphore
to "sleep" and post to it to wake it up.
pthread_kill involves signal handling which does not map well
From: Roy Riggs [mailto:firstname.lastname@example.org]
Sent: Friday, January 10, 2003 2:12 PM
Subject: Way to wake up sleeping threads?
I'm trying to port some code that was using pthread_kill() to wake up a
Is there some other means of doing this with this implementation of
pthreads, since it doesn't support pthread_kill() ?
Director, Software Development
e: email@example.com <mailto:firstname.lastname@example.org>
NOTICE: This email and any attached files are confidential and intended
solely for the use of the addressee. If you have received this email in
error, please notify the sender and delete it immediately, without
disclosing or using its contents for any purpose. Edgenet Inc accepts no
liability for any damage caused by any virus transmitted by this email.
This message may contain privileged and/or confidential information. If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so. Thank you.