ssGetRuntimeThreadSafetyCompliance

Get the thread safety compliance setting

Syntax

 int_T ssGetRuntimeThreadSafetyCompliance(SimStruct *S)

Arguments

S

SimStruct representing 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++

Example

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

Introduced in R2018a