commit | af051a59a21e61ad97dbe5b209fac2a29e5f48fd | [log] [tgz] |
---|---|---|
author | Stjepan Glavina <stjepang@gmail.com> | Mon Jan 06 15:25:52 2020 -0600 |
committer | GitHub <noreply@github.com> | Mon Jan 06 15:25:52 2020 -0600 |
tree | 36cf93162ca824ac79487d96fec56a1228904bab | |
parent | f4ae6f5adea2aaa35998eea2133e637ae210c10d [diff] [blame] |
Add waker and conversion to raw pointer (#16)
diff --git a/src/raw.rs b/src/raw.rs index 6af184f..c783d26 100644 --- a/src/raw.rs +++ b/src/raw.rs
@@ -35,6 +35,9 @@ /// Runs the task. pub(crate) run: unsafe fn(*const ()), + + /// Creates a new waker associated with the task. + pub(crate) clone_waker: unsafe fn(ptr: *const ()) -> RawWaker, } /// Memory layout of a task. @@ -131,6 +134,7 @@ drop_task: Self::drop_task, destroy: Self::destroy, run: Self::run, + clone_waker: Self::clone_waker, }, });