/* Is the semaphore already locked by another process? */
if (UNLIKELY(s->owner && (s->owner != CurrentProcess)))
{
/* Append calling process to the wait queue */
ADDTAIL(&s->wait_queue, (Node *)CurrentProcess);
/* Is the semaphore already locked by another process? */
if (UNLIKELY(s->owner && (s->owner != CurrentProcess)))
{
/* Append calling process to the wait queue */
ADDTAIL(&s->wait_queue, (Node *)CurrentProcess);