Regular API function

simGetThreadAutomaticSwitch / sim.getThreadAutomaticSwitch

Description Queries whether the current thread will eventually automatically switch to another thread. If the current script doesn't run in a thread (i.e. if it runs in the application main thread), this function always return false. See also sim.setThreadAutomaticSwitch.
C synopsis -
C parameters
-
C return value
-
Lua synopsis boolean result=sim.getThreadAutomaticSwitch()
Lua parameters
-
Lua return values
result: if true, the thread is able to automatically switch to another thread.

All regular API functions on one page