Hi David, As middleware application demands the timeout values cant be kept in sorted list. Say i have timeout values 10000,3000,150000,17000 .....so it cant workout ... Is there any alternative way to acheive this ?
Regards Girish On Feb 2, 7:23 am, David Given <d...@cowlark.com> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Girish wrote: > > [...] > > > Will there be any support for POSIX RT timers in near future. As the > > application needs more than 20 timers. > > It's trivial to implement as many timers as you like in user space; > simply keep them in a sorted list, and use your single hardware timer to > wait for the one with the shortest timeout. After all, none of the other > timers can expire until that one expires first... > > - -- > David Given > d...@cowlark.com > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org > > iD8DBQFJhlktf9E0noFvlzgRAly3AKCBt3tL4Vn5kkcc/WjE/tNM1W59+wCeOabN > c3685nJGj8KWHsvS31mb75o= > =/WUE > -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---