• R
    fix data race in timer_create with SIGEV_THREAD notification · 29bad49d
    Rich Felker 提交于
    in the timer thread start function, self->timer_id was accessed
    without synchronization; the timer thread could fail to see the store
    from the calling thread, resulting in timer_delete failing to delete
    the correct kernel-level timer.
    
    this fix is based on a patch by changdiankang, but with the load moved
    to after receiving the timer_delete signal rather than just after the
    start barrier, so as not to retain the possibility of data race with
    timer_delete.
    29bad49d
timer_create.c 2.9 KB