ruby-changes:35884
From: akr <ko1@a...>
Date: Thu, 16 Oct 2014 08:12:26 +0900 (JST)
Subject: [ruby-changes:35884] akr:r47965 (trunk): update doc.
akr 2014-10-16 08:12:21 +0900 (Thu, 16 Oct 2014) New Revision: 47965 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47965 Log: update doc. Modified files: trunk/ext/etc/etc.c Index: ext/etc/etc.c =================================================================== --- ext/etc/etc.c (revision 47964) +++ ext/etc/etc.c (revision 47965) @@ -962,9 +962,9 @@ etc_nprocessors_affin(void) https://github.com/ruby/ruby/blob/trunk/ext/etc/etc.c#L962 * The result is intended as the number of processes to * use all available processors. * - * This method is implemented as: - * - sysconf(_SC_NPROCESSORS_ONLN): GNU/Linux, NetBSD, FreeBSD, OpenBSD, DragonFly BSD, OpenIndiana, Mac OS X, AIX + * This method is implemented using: * - sched_getaffinity(): Linux + * - sysconf(_SC_NPROCESSORS_ONLN): GNU/Linux, NetBSD, FreeBSD, OpenBSD, DragonFly BSD, OpenIndiana, Mac OS X, AIX * * Example: * @@ -977,7 +977,7 @@ etc_nprocessors_affin(void) https://github.com/ruby/ruby/blob/trunk/ext/etc/etc.c#L977 * * Example: (Linux) * - * $ taskset 0x3 ./ruby -retc -e "p Etc.nprocessors" #=> 2 + * linux$ taskset 0x3 ./ruby -retc -e "p Etc.nprocessors" #=> 2 * */ static VALUE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/