Skip to content

Support passing values through the Mutex inside the parker #21

@james7132

Description

@james7132

The caller of Unparker::unpark briefly has the lock on the Mutex before notifying the condvar. Would it be feasible to pass a Send value through the Mutex to the unparked thread for it to consume? Perhaps, say, a async_task runnable? If the threads already unparked or never was to begin with,unpark can just return back an error containing the value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions