Remove type casting to wdentry_t (sched/)

This commit is contained in:
Nakamura, Yuuichi
2020-03-13 15:44:16 +09:00
committed by patacongo
parent 81b286d375
commit 3cc336dddd
9 changed files with 71 additions and 62 deletions
+1 -2
View File
@@ -132,8 +132,7 @@ int nxsem_tickwait(FAR sem_t *sem, clock_t start, uint32_t delay)
/* Start the watchdog with interrupts still disabled */
wd_start(rtcb->waitdog, delay, (wdentry_t)nxsem_timeout,
1, getpid());
wd_start(rtcb->waitdog, delay, nxsem_timeout, 1, getpid());
/* Now perform the blocking wait */
+1 -2
View File
@@ -175,8 +175,7 @@ int nxsem_timedwait(FAR sem_t *sem, FAR const struct timespec *abstime)
/* Start the watchdog */
wd_start(rtcb->waitdog, ticks, (wdentry_t)nxsem_timeout,
1, getpid());
wd_start(rtcb->waitdog, ticks, nxsem_timeout, 1, getpid());
/* Now perform the blocking wait. If nxsem_wait() fails, the
* negated errno value will be returned below.
+1 -1
View File
@@ -71,7 +71,7 @@
*
****************************************************************************/
void nxsem_timeout(int argc, wdparm_t pid)
void nxsem_timeout(int argc, wdparm_t pid, ...)
{
FAR struct tcb_s *wtcb;
irqstate_t flags;
+1 -1
View File
@@ -75,7 +75,7 @@ void nxsem_wait_irq(FAR struct tcb_s *wtcb, int errcode);
/* Handle semaphore timer expiration */
void nxsem_timeout(int argc, wdparm_t pid);
void nxsem_timeout(int argc, wdparm_t pid, ...);
/* Recover semaphore resources with a task or thread is destroyed */