Difference between revisions of "Thread:getNumLogicalCores"
From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight") |
|||
Line 5: | Line 5: | ||
=== Description === | === Description === | ||
Returns number of logical cores, hardware concurrency, on host machine. For information only. | Returns number of logical cores, hardware concurrency, on host machine. For information only. | ||
− | < | + | <syntaxhighlight lang="lua"> |
num_logical_cores = thread:getNumLogicalCores() | num_logical_cores = thread:getNumLogicalCores() | ||
</source> | </source> |
Revision as of 14:31, 13 July 2023
Available since: 2018.10
Class: Thread
Description
Returns number of logical cores, hardware concurrency, on host machine. For information only. <syntaxhighlight lang="lua"> num_logical_cores = thread:getNumLogicalCores() </source>
Return values
num_logical_cores: (number) number of logical cores