[ruby-cvs:69364] normal:r62183 (trunk): thread.c: avoid FP in C-API time calculations

normal at ruby-lang.org normal at ruby-lang.org
Sun Feb 4 04:59:21 JST 2018


normal	2018-02-04 04:59:21 +0900 (Sun, 04 Feb 2018)

  New Revision: 62183

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

  Log:
    thread.c: avoid FP in C-API time calculations
    
    FP arithmetic can lose precision in some cases leading to
    premature wakeup and wasting CPU cycles.

  Modified files:
    trunk/thread.c


More information about the ruby-cvs mailing list