Skip to content

Commit

Permalink
fixup! move getter of thread_semaphore into preempt
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed Feb 6, 2025
1 parent 89c59ca commit 8dd4e1c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions esp-wifi/src/preempt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ pub(crate) fn task_switch(trap_frame: &mut TrapFrame) {
restore_task_context(current_task(), trap_frame);
}

pub(crate) fn current_task_thread_semaphore() -> *mut c_void {
unsafe { &mut ((*current_task()).thread_semaphore) as *mut _ as *mut c_void }
pub(crate) fn current_task_thread_semaphore() -> *mut crate::binary::c_types::c_void {
unsafe {
&mut ((*current_task()).thread_semaphore) as *mut _ as *mut crate::binary::c_types::c_void
}
}

0 comments on commit 8dd4e1c

Please sign in to comment.