[ruby-cvs:55088] akr:r47939 (trunk): * ext/etc/etc.c (etc_nprocessors_affinity): use sched_getaffinity

akr at ruby-lang.org akr at ruby-lang.org
Wed Oct 15 18:41:26 JST 2014


akr	2014-10-15 18:41:25 +0900 (Wed, 15 Oct 2014)

  New Revision: 47939

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

  Log:
    * ext/etc/etc.c (etc_nprocessors_affinity): use sched_getaffinity
      for getting precious number of available cpus.
    
    * ext/etc/etc.c (etc_nprocessors): use etc_nprocessors_affinity if
      possible.
    
      [Feature #10267] etc-nprocessors-kosaki2.patch

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
    trunk/ext/etc/etc.c


More information about the ruby-cvs mailing list