This project is read-only.

WindowsCE (Perhaps BUG)

Mar 8, 2010 at 10:49 AM

In WindowsCE (Windows Mobile 6 Classic Emulator) handler is called after 30 seconds. A must at once.

AutoResetEvent wait = new AutoResetEvent(false);

 var pool = new Amib.Threading.SmartThreadPool(30000, 10, 5);

pool.QueueWorkItem(() =>
   wait.Set(); //call 30 seconds
 bool waitOne = wait.WaitOne(5000);

Mar 8, 2010 at 7:25 PM

This is why I don't use AutoResetEvent in my code.

Note that the threads there don't work as they should too.

Mar 10, 2010 at 8:38 AM

For WaitHandle.Set under CE it is necessary to use

[DllImport("coredll.dll", EntryPoint = "EventModify", SetLastError = true)]
private static extern int EventModify(IntPtr hEvent, EventAction action);