Difference between revisions of "Thread:getNumLogicalCores"
From GiderosMobile
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | + | '''Available since:''' 2018.10<br/> | |
− | ''' | + | '''Class:''' [[Thread]]<br/> |
− | ''' | ||
− | === | + | === Description === |
− | + | Returns number of logical cores, hardware concurrency, on host machine. For information only. | |
− | + | <source lang="lua"> | |
− | <source lang="lua"> | + | num_logical_cores = thread:getNumLogicalCores() |
+ | </source> | ||
− | === | + | === Return values === |
− | + | '''num_logical_cores: ''' ''(number)'' number of logical cores<br/> | |
− | |||
− | '''num_logical_cores: ''' ''(number)'' | ||
{{Thread}} | {{Thread}} |
Revision as of 04:42, 11 June 2023
Available since: 2018.10
Class: Thread
Description
Returns number of logical cores, hardware concurrency, on host machine. For information only.
num_logical_cores = thread:getNumLogicalCores()
Return values
num_logical_cores: (number) number of logical cores