[ruby-cvs:68482] normal:r61301 (trunk): thread.c: hoist out timeval arithmetic functions

normal at ruby-lang.org normal at ruby-lang.org
Sun Dec 17 17:26:12 JST 2017


normal	2017-12-17 17:26:12 +0900 (Sun, 17 Dec 2017)

  New Revision: 61301

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

  Log:
    thread.c: hoist out timeval arithmetic functions
    
    timeval arithmetic may be reused in other places and this
    makes sleep_timeval easier-to-read.
    
    * thread.c (timeval_add): hoist out of sleep_timeval
      (timeval_update_expire): ditto
      (sleep_timeval): use new functions

  Modified files:
    trunk/thread.c


More information about the ruby-cvs mailing list