|
rstd 0.1.0
|
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. | |
A waker that can be shared among threads without locking.
This is a simple wrapper around Waker that internally uses a mutex for synchronization.