timer questions
Hi all
Questions regarding timers:
1. I have a function that I would like to run every say 100 milliseconds.
When using mp:schedule-timer-relative-milliseconds with a repeat-time of 100, it seems like the timer is rescheduled when the function has returned. This results in more than 100 ms between the calls, but I want the function to be called every 100ms no matter how long time the function takes to return. Any ideas how to accomplish this?
2. I understand that timers expire in the thread that is currently running. I this due to timers being registered in the operating system, and called back by interrupt from there?
3. Is the timer callback function non-interruptible until it returns? What about Garbage Collection, may it interrupt a timer callback?
Please enlighten me...
Thanks!
Sven