rstd 0.1.0
Loading...
Searching...
No Matches
rstd::sync::mpsc::mpmc::SyncWaker Class Referenceexport
module rstd

Public Member Functions

void register_op (Operation oper, const Context &cx)
 Registers the current thread with an operation.
 
auto unregister (Operation oper) -> Option< Entry >
 Unregisters an operation previously registered by the current thread.
 
void notify ()
 Attempts to find one thread (not the current one), select its operation, and wake it up.
 
void disconnect ()
 Notifies all threads that the channel is disconnected.
 

Detailed Description

A waker that can be shared among threads without locking.

This is a simple wrapper around Waker that internally uses a mutex for synchronization.


The documentation for this class was generated from the following file: