Regular API function

sim.getThreadSwitchAllowed

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