Determine if the S-function can run multithreaded
ssSetRuntimeThreadSafetyCompliance(SimStruct *S, int_T val)
SimStruct representing an S-Function block.
Threadsafety compliance setting. The setting can be:
RUNTIME_THREAD_SAFETY_COMPLIANCE_UNKNOWN— Declare that it is not known if the S-function is threadsafe.
RUNTIME_THREAD_SAFETY_COMPLIANCE_TRUE— Declare the S-function as threadsafe.
RUNTIME_THREAD_SAFETY_COMPLIANCE_FALSE— Declare the S-function as not threadsafe.
Use this macro in an S-function to set it as threadsafe, which means it can run
multithreaded. This setting works with the
MultithreadedSim block property. The behavior is:
|Option||S-Function Runs Single or Multithreaded|
|—||Setting is ignored and S-function block runs singlethreaded|
See the S-function used in