Roland once wrote a "timer" builtin which has sub commands "create", "delete", "gettime", "settime" and "getoverrun", and has access to all times the POSIX timer api provides. It either sends SIGALRM or (preferred) SIGRT signals to the consumers.
If Glenn and David approve the idea, I'd make him to polish the builtin, for usage in ksh93v-. Olga On Tue, Aug 13, 2013 at 8:38 AM, Cedric Blancher <[email protected]> wrote: > Does ksh have a plugin to handle multiple timers? I'm looking for > something which can set variables in regular intervals or issue > one-shot events (e.g. timeout). The timers must be cancel-able, i.e. > this is for a function library and the caller must not know about this > or interfere with the timers used by a caller. > > Ced > -- > Cedric Blancher <[email protected]> > Institute Pasteur > _______________________________________________ > ast-users mailing list > [email protected] > http://lists.research.att.com/mailman/listinfo/ast-users -- , _ _ , { \/`o;====- Olga Kryzhanovska -====;o`\/ } .----'-/`-/ [email protected] \-`\-'----. `'-..-| / http://twitter.com/fleyta \ |-..-'` /\/\ Solaris/BSD//C/C++ programmer /\/\ `--` `--` _______________________________________________ ast-developers mailing list [email protected] http://lists.research.att.com/mailman/listinfo/ast-developers
