JezK
Edit File: physical_processor_count-i.ri
U:RDoc::AnyMethod[iI"physical_processor_count:EFI"CConcurrent::Utility::ProcessorCounter#physical_processor_count;FF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"ONumber of physical processor cores on the current system. For performance ;TI"Ereasons the calculated value will be memoized on the first call.;To:RDoc::Markup::BlankLine o; ; [I"JOn Windows the Win32 API will be queried for the `NumberOfCores from ;TI"KWin32_Processor`. This will return the total number "of cores for the ;TI"Ocurrent instance of the processor." On Unix-like operating systems either ;TI"Lthe `hwprefs` or `sysctl` utility will be called in a subshell and the ;TI"Oreturned value will be used. In the rare case where none of these methods ;TI"Fwork or an exception is raised the function will simply return 1.;T@o; ; [I"L@return [Integer] number physical processor cores on the current system;T@o; ; [I"k@see https://github.com/grosser/parallel/blob/4fc8b89d08c7091fe0419ca8fba1ec3ce5a8d185/lib/parallel.rb;T@o; ; [I"I@see http://msdn.microsoft.com/en-us/library/aa394373(v=vs.85).aspx ;TI"6@see http://www.unix.com/man-page/osx/1/HWPREFS/ ;TI"+@see http://linux.die.net/man/8/sysctl;T: @fileI"0lib/concurrent/utility/processor_counter.rb;T:0@omit_headings_from_table_of_contents_below000[ I"();T@#FI"ProcessorCounter;FcRDoc::NormalClass00