Regular API function

sim.getThreadAutomaticSwitch

Description Queries whether the current thread will automatically be interrupted, i.e. switched. See also sim.setThreadAutomaticSwitch and sim.getThreadSwitchAllowed.
C synopsis
C parameters
C return value
Lua synopsis boolean result=sim.getThreadAutomaticSwitch()
Lua parameters
none
Lua return values
result: if true, the thread will automatically be interrupted, i.e. switched.