• R
    avoid all malloc/free in timer creation/destruction · 3990c5c6
    Rich Felker 提交于
    instead of allocating a userspace structure for signal-based timers,
    simply use the kernel timer id. we use the fact that thread pointers
    will always be zero in the low bit (actually more) to encode integer
    timerid values as pointers.
    
    also, this change ensures that the timer_destroy syscall has completed
    before the library timer_destroy function returns, in case it matters.
    3990c5c6
timer_gettime.c 245 字节