To create a thread whenever the timer fires, set the sigev_notify field to SIGEV_THREAD and fill these fields:
Field | Value and meaning |
---|---|
sigev_notify_function | Address of void * function that accepts a void * to be called when the event triggers. |
sigev_value | Value passed as the parameter to the sigev_notify_function() function. |
sigev_notify_attributes | Thread attributes structure (see the Processes and Threads chapter, under "The thread attributes structure" for details). |