Hello Jasmeet,

I am doing timers in a similar style as the Linux Kernel. I have a doubly linked list 
of structures, each structure representing a "timer". My implementation orders the 
list so that the head of the list is the structure that expires next. Now you call a 
routine from a periodic thread (in my code I have a thread that scans IO every 250us 
and I'll call the timer scan here). When the current time is greater or equal to the 
timer time, a timer handler function is called from within this thread. It is assumed 
that the handler is fast and will not block. 

I guess the short of the answer is that you have to roll your own solution. I don't 
know of a solution that is built into the system. I'd be happy to post my code when I 
get it working though. 

~Ken

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to