|
rstd 0.1.0
|
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< Entry > | selectors |
| A list of select operations. | |
| Vec< Entry > | observers |
| A list of operations waiting to be ready. | |
A queue of threads blocked on channel operations.