mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-06-05 10:38:17 +08:00
SLEEPQUEUE(9): Update due to API changes
This commit is contained in:
parent
c2f2392028
commit
1ee85a59b7
@ -664,7 +664,7 @@ sleepq_switch(void *wchan, int pri)
|
|||||||
_Thread_Lock_release_default(executing, &lock_context);
|
_Thread_Lock_release_default(executing, &lock_context);
|
||||||
|
|
||||||
if (unblock) {
|
if (unblock) {
|
||||||
_Watchdog_Remove(&executing->Timer);
|
_Watchdog_Remove_ticks(&executing->Timer);
|
||||||
_Thread_Clear_state(executing, STATES_WAITING_FOR_BSD_WAKEUP);
|
_Thread_Clear_state(executing, STATES_WAITING_FOR_BSD_WAKEUP);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -968,7 +968,7 @@ sleepq_resume_thread(struct sleepqueue *sq, struct thread *td, int pri)
|
|||||||
cpu_self = _Thread_Dispatch_disable_critical();
|
cpu_self = _Thread_Dispatch_disable_critical();
|
||||||
_Thread_Lock_release_default(thread, &lock_context);
|
_Thread_Lock_release_default(thread, &lock_context);
|
||||||
|
|
||||||
_Watchdog_Remove(&thread->Timer);
|
_Watchdog_Remove_ticks(&thread->Timer);
|
||||||
_Thread_Clear_state(thread, STATES_WAITING_FOR_BSD_WAKEUP);
|
_Thread_Clear_state(thread, STATES_WAITING_FOR_BSD_WAKEUP);
|
||||||
|
|
||||||
_Thread_Dispatch_enable(cpu_self);
|
_Thread_Dispatch_enable(cpu_self);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user