rstd 0.1.0
Loading...
Searching...
No Matches
rstd::sync::mpsc::mpmc::Waker Struct Reference
module rstd

A queue of threads blocked on channel operations. More...

Public Member Functions

void register_op (Operation oper, const Context &cx)
 Registers a select operation.
 
void register_with_packet (Operation oper, void *packet, const Context &cx)
 Registers a select operation and a packet.
 
auto unregister (Operation oper) -> Option< Entry >
 Unregisters a select operation.
 
auto try_select () -> Option< Entry >
 Attempts to find another thread's entry, select the operation, and wake it up.
 
void notify ()
 Notifies all operations waiting to be ready.
 
void disconnect ()
 Notifies all registered operations that the channel is disconnected.
 

Public Attributes

Vec< Entryselectors
 A list of select operations.
 
Vec< Entryobservers
 A list of operations waiting to be ready.
 

Detailed Description

A queue of threads blocked on channel operations.


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