osKernelRestoreLock() function
Restore the RTOS Kernel scheduler lock state.
Syntax
int32_t osKernelRestoreLock (int32_t lock); Arguments
lock
lock state obtained by osKernelLock or osKernelUnlock.
Return value
new lock state (1 - locked, 0 - not locked, error code if negative).
![]()
int32_t osKernelRestoreLock (int32_t lock);