1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

update doc.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2014-10-15 23:12:21 +00:00
parent 5c8c88a3e9
commit f65a15b0cf

View file

@ -962,9 +962,9 @@ etc_nprocessors_affin(void)
* The result is intended as the number of processes to * The result is intended as the number of processes to
* use all available processors. * use all available processors.
* *
* This method is implemented as: * This method is implemented using:
* - sysconf(_SC_NPROCESSORS_ONLN): GNU/Linux, NetBSD, FreeBSD, OpenBSD, DragonFly BSD, OpenIndiana, Mac OS X, AIX
* - sched_getaffinity(): Linux * - sched_getaffinity(): Linux
* - sysconf(_SC_NPROCESSORS_ONLN): GNU/Linux, NetBSD, FreeBSD, OpenBSD, DragonFly BSD, OpenIndiana, Mac OS X, AIX
* *
* Example: * Example:
* *
@ -977,7 +977,7 @@ etc_nprocessors_affin(void)
* *
* Example: (Linux) * Example: (Linux)
* *
* $ taskset 0x3 ./ruby -retc -e "p Etc.nprocessors" #=> 2 * linux$ taskset 0x3 ./ruby -retc -e "p Etc.nprocessors" #=> 2
* *
*/ */
static VALUE static VALUE