[ruby-cvs:69453] normal:r62272 (trunk): thread.c: favor timespec internally

normal at ruby-lang.org normal at ruby-lang.org
Wed Feb 7 10:57:14 JST 2018


normal	2018-02-07 10:57:14 +0900 (Wed, 07 Feb 2018)

  New Revision: 62272

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62272

  Log:
    thread.c: favor timespec internally
    
    This results in fewer conversion on common modern systems with
    support for clock_gettime, pthread_cond_timedwait and ppoll.
    gettimeofday is declared obsolete by POSIX.1-2008, so it is yet
    another reason to move away from it.  This also appears to result
    in the reduction of compatibility code required for dealing
    with inconsistent implementations of "struct timeval".tv_sec
    
    In the future, this will also result in fewer conversions for
    kqueue and pselect if we elect to use them.
    
    [ruby-core:85416] [Feature #14452]

  Modified files:
    trunk/thread.c
    trunk/thread_pthread.c
    trunk/thread_sync.c
    trunk/thread_win32.c


More information about the ruby-cvs mailing list