[ofw] anyone know about events and overlapped I/O?

Tzachi Dar tzachid at mellanox.co.il
Wed Mar 4 13:35:27 PST 2009


You need to use a different event for each overlapped operation.

Thanks
Tzachi 

> -----Original Message-----
> From: ofw-bounces at lists.openfabrics.org 
> [mailto:ofw-bounces at lists.openfabrics.org] On Behalf Of Sean Hefty
> Sent: Wednesday, March 04, 2009 8:51 PM
> To: ofw at lists.openfabrics.org
> Subject: [ofw] anyone know about events and overlapped I/O?
> 
> Does anyone know if it's safe for multiple overlapped I/O 
> operations to reference the same event?  I bring this up 
> because I'm trying to do just this, and my application hangs 
> waiting for events.  I'm using manual reset events, though 
> I've tried with auto-reset as well.
> 
> As a point of reference, this is in the documentation for the 
> hEvent field in the OVERLAPPED structure:
> 
> "Functions such as ReadFile and WriteFile set this handle to 
> the nonsignaled state before they begin an I/O operation. 
> When the operation has completed, the handle is set to the 
> signaled state."  This makes me think that it's possible to 
> lose events if shared between overlapped structures.
> 
> Although under the Remarks section it states: "You should 
> also create an event object for each thread that processes 
> data."  This makes me think that it's doable.
> 
> - Sean
> 
> _______________________________________________
> ofw mailing list
> ofw at lists.openfabrics.org
> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw
> 



More information about the ofw mailing list