0

I need to keep an isochronous event synchronized with a timer-oriented signal handler.

Can I use timer_settime() inside a signal handler to adjust the next timer expiration, and thus keep my timer-oriented signal handler synchronized with the event?

psqli
  • 588
  • 6
  • 11

1 Answers1

0

Ok, after some other research I found in this answer a link to this part of POSIX specification (IEEE Std 1003.1-2008 or POSIX.1-2008).

The specification gives (in System Interfaces->Pointer to a function subsection) a list of async-signal-safe functions to use in signal handlers, and timer_settime() is part of them.

I appreciate another more technical and detailed answer, although my question was resolved. Thanks!

psqli
  • 588
  • 6
  • 11