• R
    unify and overhaul timed futex waits · ec381af9
    Rich Felker 提交于
    new features:
    
    - FUTEX_WAIT_BITSET op will be used for timed waits if available. this
      saves a call to clock_gettime.
    
    - error checking for the timespec struct is now inside __timedwait so
      it doesn't need to be duplicated everywhere. cond_timedwait still
      needs to duplicate it to avoid unlocking the mutex, though.
    
    - pushing and popping the cancellation handler is delegated to
      __timedwait, and cancellable/non-cancellable waits are unified.
    ec381af9
pthread_join.c 271 字节