...
The lock operation typically consists in pending on a semaphore. If the semaphore is free, the task continues normally its execution, otherwise it waits until another task releases the semaphore. p_err
argument should be assigned as described in Table - Error code assignment according to pend operation result.