all groups > dotnet compact framework > october 2004 >
You're in the

dotnet compact framework

group:

WaitAny with timeout


Re: WaitAny with timeout Chris Tacke, eMVP
10/31/2004 9:35:34 AM
dotnet compact framework:
P/Invoke WaitForMultipleObjects.

--
<ctacke/>
www.opennetcf.org/sdf
Winner of the 2004 Pocket PC Magazine Best Software award


[quoted text, click to view]

WaitAny with timeout Alexander Muylaert
10/31/2004 11:22:34 AM
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

Re: WaitAny with timeout Alex Feinman [MVP]
10/31/2004 1:07:41 PM
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

--
Alex Feinman
---
Visit http://www.opennetcf.org
[quoted text, click to view]

AddThis Social Bookmark Button