I need to port some code using tasklets & timers from Linux to QNX.
Currenlty, the only way to port a Linux-style timer ( which takes timeout
and a function to execute as parameters ) that I see is to create a
high-priority
thread(s) that will block waiting for event(s) from QNX timer(s)
( Another opportulity would be to register a QNX timer that will create
a thread running the argument function, but the very idea of timer creating
thread scares me a lot ) .
Is there any better way ?
Maybe somebody here already ported Linux tasklet & timers - related code
to QNX and can give me some advise ?
Are there any porting examples on the web ?
Thanx in advance
Ilya