aboutsummaryrefslogtreecommitdiff
path: root/embassy-executor/src
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-executor/src')
-rw-r--r--embassy-executor/src/raw/mod.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/embassy-executor/src/raw/mod.rs b/embassy-executor/src/raw/mod.rs
index 5b1f33a0e..56faa911d 100644
--- a/embassy-executor/src/raw/mod.rs
+++ b/embassy-executor/src/raw/mod.rs
@@ -555,6 +555,11 @@ impl Executor {
555 pub fn spawner(&'static self) -> super::Spawner { 555 pub fn spawner(&'static self) -> super::Spawner {
556 super::Spawner::new(self) 556 super::Spawner::new(self)
557 } 557 }
558
559 /// Get a unique ID for this Executor.
560 pub fn id(&'static self) -> usize {
561 &self.inner as *const SyncExecutor as usize
562 }
558} 563}
559 564
560/// Wake a task by `TaskRef`. 565/// Wake a task by `TaskRef`.