mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
Remove type casting to wdentry_t (sched/)
This commit is contained in:
committed by
patacongo
parent
81b286d375
commit
3cc336dddd
@@ -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 */
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user