We are porting a linux app to macOS / iOS
The app uses a timer wheel and timer_t type. This type is not defined in time.h class of macOS as described in:
why is "timer_t" defined in "time.h" on Linux but not OS X
Also the methods timer_create(), timer_settime() and timer_delete() are not defined.
This is the class that I'm porting: https://github.com/OpenOverlayRouter/oor/blob/testing/oor/lib/timers.c
We found that maybe we can do this with NSTimer and Objective-C but I would like to do in C.
Can we do it in C? Which kernel libraries should we use?
Thanks
timer_ttype, and what does the code use them for?timer_settimeon macOS, or rewrite that library to instead use some other timer callback scheme; maybe see howlibeventor such implements timers on *BSD systems?