Skip to content
Snippets Groups Projects
Commit acd36f2d authored by Avi Kivity's avatar Avi Kivity
Browse files

sched: wake_lock()


This adds a facility to wake a thread, but with the intention that it will
acquire a certain lock after waking, and while the waker holds the lock.
This is implemented using the regular wait morphing code (send_lock() and
receive_lock()), but with additional mutual exclusion to allow regular
wake()s in parallel.

Signed-off-by: default avatarAvi Kivity <avi@cloudius-systems.com>
parent fd17a9ed
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment