This C++ wrapper looks excellent - a simple wrapper that does exactly that without ruining FreeRTOS or doing more than I ask for.
Do you support taskENTER_CRITICAL https://www.freertos.org/taskENTER_CRITICAL_taskEXIT_CRITICAL.html ? I couldn't find any such methods.