Quoting r. Sean Hefty <[EMAIL PROTECTED]>: > >I think the proper solution is to record the event in the object itself. > >For example, on cq event set bit "event received". > >Then after object goes away events go away without flags, states and > >ugliness. > > What we're suggesting is that the "event set bit" be a reference count. Some > objects, like a listening cm_id, can have multiple events outstanding at once.
For cq, there can only be one outstanding event of each kind at a time. So you can just keep a mask of events that happened, avoiding any mallocs. Is that not the same for cm? Anyway, once you can get all events from a given object, you can just go and remove all events, without state, reference counting or whatever. Thats what I advocate instead of waiting until all events are delivered. Makes sense? -- MST _______________________________________________ openib-general mailing list [email protected] http://openib.org/mailman/listinfo/openib-general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
