mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 08:12:30 +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>,
|
||||
condvar: Condvar,
|
||||
}
|
||||
|
||||
impl Signaler {
|
||||
fn new() -> Self {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
mutex: Mutex::new(false),
|
||||
condvar: Condvar::new(),
|
||||
|
Loading…
Reference in New Issue
Block a user