semaphore/_SEM_XX: Remove the _SEM redirection macros as unnecessary

This commit is contained in:
Ville Juven
2023-11-27 04:52:54 -08:00
committed by Xiang Xiao
parent 5f36a43609
commit e39ef8563e
7 changed files with 16 additions and 63 deletions
+3 -3
View File
@@ -96,7 +96,7 @@ static int work_qqueue(FAR struct usr_wqueue_s *wqueue,
/* Add the watchdog to the head == tail of the queue. */
dq_addfirst(&work->u.s.dq, &wqueue->q);
_SEM_POST(&wqueue->wake);
nxsem_post(&wqueue->wake);
}
/* There are other active watchdogs in the timer queue */
@@ -127,10 +127,10 @@ static int work_qqueue(FAR struct usr_wqueue_s *wqueue,
/* Insert the watchdog at the head of the list */
dq_addfirst(&work->u.s.dq, &wqueue->q);
_SEM_GETVALUE(&wqueue->wake, &semcount);
nxsem_get_value(&wqueue->wake, &semcount);
if (semcount < 1)
{
_SEM_POST(&wqueue->wake);
nxsem_post(&wqueue->wake);
}
}
else