* cancellation API
@ 2013-12-20 17:49 Roger Pack
2013-12-20 17:57 ` Mark Pizzolato - pthreads - win32
0 siblings, 1 reply; 3+ messages in thread
From: Roger Pack @ 2013-12-20 17:49 UTC (permalink / raw)
To: pthreads-win32
After a bit of googling, i was still a bit confused. Does the
win32-pthreads api support cancellation for things like recv() from
sockets or not? (I assume the standard pthreads does?)
Thank you, just wondering.
-roger-
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: cancellation API
2013-12-20 17:49 cancellation API Roger Pack
@ 2013-12-20 17:57 ` Mark Pizzolato - pthreads - win32
[not found] ` <CAL1QdWehMtvsQ=RMo=-m1omtax=tADA97Eg320-gjFhzGXNRZQ@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Mark Pizzolato - pthreads - win32 @ 2013-12-20 17:57 UTC (permalink / raw)
To: Roger Pack, pthreads-win32
On Friday, December 20, 2013 at 9:50 AM, Roger Park wrote:
> After a bit of googling, i was still a bit confused. Does the win32-pthreads api
> support cancellation for things like recv() from sockets or not? (I assume the
> standard pthreads does?) Thank you, just wondering.
There is no special awareness of thread context from within the recv() (or any networking APIs). So, canceling would be potentially problematic. However, from my experience, if another thread closes the socket which the thread you're concerned with is reading on, the read will complete with an error. The reading thread can then clean up and exit on its own.
- Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-12-31 16:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-20 17:49 cancellation API Roger Pack
2013-12-20 17:57 ` Mark Pizzolato - pthreads - win32
[not found] ` <CAL1QdWehMtvsQ=RMo=-m1omtax=tADA97Eg320-gjFhzGXNRZQ@mail.gmail.com>
2013-12-31 16:15 ` Roger Pack
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).