remote_waker

Crates.ioremote_waker
lib.rsremote_waker
version1.0.0
sourcesrc
created_at2023-05-19 14:58:00.833633
updated_at2023-05-19 14:58:00.833633
descriptionA library to wake tasks remotely
homepage
repository
max_upload_size
id868913
size3,392
(megahomyak)

documentation

README

Available on crates.io!

Remote waker

This thing allows to wake a remote task. That's it. Helps, for example, when one task is pulling something from a mutexed queue and another task is putting something into the same queue. By utilizing the remote waker in such case, we can wake the first task only when the second task puts an item into the queue, which improves performance.

Usage

Use a new function to get a Waker and a Snoozer, give the Waker to the waking task and the snoozer to the snoozing task. When applying to the example above, we'll need to give the Waker to the pushing task and the Snoozer to the pulling task.

Commit count: 0

cargo fmt