Difference between revisions of "Thread:getNumLogicalCores"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' 2018.10<br/>
'''<translate>Available since</translate>:''' 2018.10<br/>
+
'''Class:''' [[Thread]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/Thread|Thread]]<br/>
 
  
=== <translate>Description</translate> ===
+
=== Description ===
<translate>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.
</translate><br/>
+
<syntaxhighlight lang="lua">
<source lang="lua">local num_logical_cores = thread:getNumLogicalCores()</source>
+
num_logical_cores = thread:getNumLogicalCores()
 +
</syntaxhighlight>
  
=== <translate>Parameters</translate> ===
+
=== Return values ===
''<translate>none</translate>''<br/>
+
'''num_logical_cores: ''' ''(number)'' number of logical cores<br/>
=== <translate>Return values</translate> ===
+
 
'''num_logical_cores: ''' ''(number)'' <translate></translate><br/>
+
{{Thread}}

Latest revision as of 14:33, 13 July 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