OS_SH_MEM_PROTECT_MUTEX definition

When this constant is set to 1, shared memory synchronization via mutex objects is enabled. To utilize this feature for a specific object, the OS_IPC_PROTECT_MUTEX mode flag must be passed to the osCreateSharedMemory function during initialization. This protection mechanism should be employed whenever there is a potential risk of priority inversion within the application. If this constant is not explicitly defined, it defaults to 1. To optimize memory usage and reduce the final code size, this feature can be disabled by setting OS_SH_MEM_PROTECT_MUTEX to 0 if mutex-based protection is not required.

SpaceShadow documentation