Regular API
function
simGetThreadId
Description
Returns a thread id. See also
simLockResources
and
simUnlockResources
.
C synopsis
simInt simGetThreadId()
C parameters
-
C return value
-1 in case of an error, otherwise the thread id: 0 if the thread is the gui thread, 1 if the thread is the main simulation thread, n if the thread is an auxiliary simulation thread.
Lua synopsis
number threadId=simGetThreadId()
Lua parameters
-
Lua return values
Same as C-function
All regular API functions on one page