User Activity

Hi, Im using CUBE IDE with freertos, I'm changing the BASEPRI in my code but it gets reset during the osDelay, why is that ?