WaitAny with timeout

  • Thread starter Thread starter Alexander Muylaert
  • Start date Start date
A

Alexander Muylaert

Hi

I assume I must be the 1.000.000 poster by now with the same question. (I
can find the question a lot, just can't find the answer).

I need a Timeoutable ManualresetEvent. Anybody has any clue on how to get
their?

I'm sharing a lot of source between Compact en full framework. I have no
intention of using to many #if statements. I also don't want a system with
a boolean and a lock. Only the idea makes me sick...

Anybody has some idea on how to get this up and running?

kind regards

Alexander
 
To elaborate a bit - you will need to create an unmanaged Event created and
then use MsgWaitForMultipleObejcts to wait for it. You will also require
unmanaged functions to set/reset/pulse event and Closehandle for cleanup.
OpenNETCF has all necessary P/Invokes
 
Back
Top