We are porting a linux app to macOS / iOSThe 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 XAlso 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.cWe 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
Alternative to timer_t in macOS
linux;osx;c;macintosh;ios
After talking with Apple Support:The most obvious candidate here is dispatch timer sources.https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man3/dispatch_source_create.3.htmlNow I'm working in other section of that project, after implementing the timers section I'll post more information about that if I found something interesting.