I have a typical Producer/Consumer problem and trying to synchronize 2 Threads. I want to find an alternative to Suspend() and Resume() in C# Compact Framework. They both arent supported by CF :( . I found some examples, which are based on EventWaitHandle and use something like :
private EventWaitHandle ewh = new AutoResetEvent();
But the problem is that also AutoResetEvent isnt a part of Compact Framework. I would like to know whether there is an another way of solving such Producer/Consumer troubles using EventWaitHandle. I know that AutoResetEvent is derived from EventWaitHandle. Which other Subclasses of EventWaitHAndle do you know?