Fix fn name

This commit is contained in:
Dániel Buga 2023-08-14 16:33:49 +02:00
parent 9954346143
commit da4f15d944
3 changed files with 5 additions and 5 deletions

View File

@ -17,7 +17,7 @@ mod thread {
static SIGNAL_WORK_THREAD_MODE: AtomicBool = AtomicBool::new(false); static SIGNAL_WORK_THREAD_MODE: AtomicBool = AtomicBool::new(false);
#[export_name = "__pender"] #[export_name = "__pender"]
fn __thread_mode_pender(_context: *mut ()) { fn __pender(_context: *mut ()) {
SIGNAL_WORK_THREAD_MODE.store(true, Ordering::SeqCst); SIGNAL_WORK_THREAD_MODE.store(true, Ordering::SeqCst);
} }

View File

@ -16,8 +16,8 @@ mod thread {
use crate::raw::util::UninitCell; use crate::raw::util::UninitCell;
use crate::{raw, Spawner}; use crate::{raw, Spawner};
#[export_name = "__thread_mode_pender"] #[export_name = "__pender"]
fn __thread_mode_pender(context: *mut ()) { fn __pender(context: *mut ()) {
let signaler: &'static WasmContext = unsafe { std::mem::transmute(context) }; let signaler: &'static WasmContext = unsafe { std::mem::transmute(context) };
let _ = signaler.promise.then(unsafe { signaler.closure.as_mut() }); let _ = signaler.promise.then(unsafe { signaler.closure.as_mut() });
} }

View File

@ -13,8 +13,8 @@ mod thread {
/// global atomic used to keep track of whether there is work to do since sev() is not available on Xtensa /// global atomic used to keep track of whether there is work to do since sev() is not available on Xtensa
static SIGNAL_WORK_THREAD_MODE: AtomicBool = AtomicBool::new(false); static SIGNAL_WORK_THREAD_MODE: AtomicBool = AtomicBool::new(false);
#[export_name = "__thread_mode_pender"] #[export_name = "__pender"]
fn __thread_mode_pender(_context: *mut ()) { fn __pender(_context: *mut ()) {
SIGNAL_WORK_THREAD_MODE.store(true, Ordering::SeqCst); SIGNAL_WORK_THREAD_MODE.store(true, Ordering::SeqCst);
} }