[Libevent-users] IOCP writes
Toby Douglass
toby.douglass at summerblue.net
Wed Feb 21 07:01:55 EST 2007
I'm adding support for IOCP writes.
I've realised, though, that if you issue a write on a socket which
currently has an outstanding reading, when the IOCP completes, you don't
immediately know which operation has completed.
The obvious answer is to use select() to check the socket when an IOCP
completes, but that's very awkward, because of the race conditions, for
the other operation could complete in the time between the IOCP complete
and select() and you have multiple threads calling GQCS concurrently.
Locking would be required, which would be Bad.
More information about the Libevent-users
mailing list