• R
    factor cancellation cleanup push/pop out of futex __timedwait function · 0fc317d8
    Rich Felker 提交于
    previously, the __timedwait function was optionally a cancellation
    point depending on whether it was passed a pointer to a cleaup
    function and context to register. as of now, only one caller actually
    used such a cleanup function (and it may face removal soon); most
    callers either passed a null pointer to disable cancellation or a
    dummy cleanup function.
    
    now, __timedwait is never a cancellation point, and __timedwait_cp is
    the cancellable version. this makes the intent of the calling code
    more obvious and avoids ugly dummy functions and long argument lists.
    0fc317d8
pthread_join.c 360 字节