Difference between revisions of "Thread:getNumLogicalCores"

From GiderosMobile
(Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' 2018.10<br/> '''<translate>Class</translate>:''' Thread<br/> === <translat...")
 
Line 5: Line 5:
  
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
<translate>Returns number of logical cores on host machine. For information only.
+
<translate>Returns number of logical cores, hardware concurrency, on host machine. For information only.
 
</translate><br/>
 
</translate><br/>
<source lang="lua">local = thread:getNumLogicalCores()</source>
+
<source lang="lua">local num_logical_cores = thread:getNumLogicalCores()</source>
  
 
=== <translate>Parameters</translate> ===
 
=== <translate>Parameters</translate> ===
 
''<translate>none</translate>''<br/>
 
''<translate>none</translate>''<br/>
 
=== <translate>Return values</translate> ===
 
=== <translate>Return values</translate> ===
''': ''' ''(number)''  <translate></translate><br/>
+
'''num_logical_cores: ''' ''(number)''  <translate></translate><br/>

Revision as of 13:44, 4 October 2018


Available since: 2018.10
Class: Thread

Description

Returns number of logical cores, hardware concurrency, on host machine. For information only.

local num_logical_cores = thread:getNumLogicalCores()

Parameters

none

Return values

num_logical_cores: (number)