[ruby-cvs:71448] normal:r64356 (trunk): thread_pthread.c: use CLOCK_REALTIME on SunOS (Solaris)

normal at ruby-lang.org normal at ruby-lang.org
Tue Aug 14 11:24:37 JST 2018


normal	2018-08-14 11:24:37 +0900 (Tue, 14 Aug 2018)

  New Revision: 64356

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

  Log:
    thread_pthread.c: use CLOCK_REALTIME on SunOS (Solaris)
    
    timer_create does not seem to support CLOCK_MONOTONIC on Solaris,
    and CLOCK_HIRES seems like it could fail with insufficient permissions:
    
    https://docs.oracle.com/cd/E86824_01/html/E54766/timer-create-3c.html
    
    (Only tested on Linux and FreeBSD)
    
    [ruby-core:88360] [Misc #14937]

  Modified files:
    trunk/thread_pthread.c


More information about the ruby-cvs mailing list