Hello !
I try WaitForSingleObject(tempEvent, tempInterval) but I can not make correct timing.
I think SysyUtils.Sleep function is not interruptable.
I need a interruptabe sleep method. it should not use much more system resource because there are alot of threads and they use sleep 1000s times in a day ... ( may be a bad design ).
1 second or half second is not imortant for me.
I need any clue about CreateEvent and WaitForSingleObject
or
other interruptable sleep methods.
thanks.