mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 06:42:32 +00:00
executor: arch-std: Make Signaler
public.
When you have the feature = 'arch-std' enabled. Then the executor code creates the function '__pender()'. But this function used `Signaler` internally. The problem is that `Signaler` is currently private. Make it public so that it can be used to create one for the `raw::executor::new()`.
This commit is contained in:
parent
8eb80c6816
commit
4d431f2d66
@ -64,13 +64,13 @@ mod thread {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct Signaler {
|
pub struct Signaler {
|
||||||
mutex: Mutex<bool>,
|
mutex: Mutex<bool>,
|
||||||
condvar: Condvar,
|
condvar: Condvar,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Signaler {
|
impl Signaler {
|
||||||
fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
Self {
|
Self {
|
||||||
mutex: Mutex::new(false),
|
mutex: Mutex::new(false),
|
||||||
condvar: Condvar::new(),
|
condvar: Condvar::new(),
|
||||||
|
Loading…
Reference in New Issue
Block a user