Main Content

ssGetRuntimeThreadSafetyCompliance

Get the thread safety compliance setting

Syntax

 int_T ssGetRuntimeThreadSafetyCompliance(SimStruct *S)

Arguments

S

SimStruct that represents an S-Function block.

Returns

Threadsafety setting of the S-function block:

  • 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.

Description

Use to get the threadsafety compliance setting of the S-function.

Languages

C, C++

Examples

See the S-function used in matlabroot/toolbox/simulink/sfuntemplates/src/slexCoSimPrimeSFcn.c

Version History

Introduced in R2018a