timer_create()/timer_settime() could work with thread/proc clocks
This is a followup to #14126 , requesting timer_create() and timer_settime() support.
I'm attaching a primitive test program that uses /dev/random reads and qsort() to juice-up CPU cycles to encourage earlier/later printing events.
Updated by Robert Mustacchi about 2 months ago
So if we want to implement these, the way to do this is basically to make this something that we check in the clock tick handler the same way that we do resource controls and other pieces and use that to deliver the event. I think this is probably fine since existence is tied to your process. However, what we should avoid is probably doing this for clock_getcpuclockid and pthread_getcpuclockid as it suddenly puts a lot of murky questions about what to do when the process / thread exits and it's not your process/thread.