Joris,
Yes, this is correct. The order in which the threads are released is
not able to be set, or guaranteed.
You should use this as a filter of sorts, not as an ordering mechanism.
If you need an ordering mechanism, then you should have a controller on a
thread which will block the other threads (it passes out the handles to wait
on, so that they are unique), and then have that wait on the one event.
When it is released, it releases one more thread.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)
Joris Dobbelsteen said:
Is it correct that the AutoResetEvent class doesn't guareentee any ordering?
- Joris