OS_SH_MEM_PROTECT_MUTEX definition

When this constant is set to 1, the synchronization realized by mutex is available. To enable this feature for specified object, specify OS_IPC_PROTECT_MUTEX mode flag, when it is created by osCreateSharedMemory function. It should be used whenever there is a risk of occurrence of priority inversion. When this constant is not defined, the default value is 1. When this feature is not used, disable it by setting the OS_SH_MEM_PROTECT_MUTEX to zero, to reduce the output code.

SpaceShadow documentation