Status and operations of a Bridge pump thread.
More...
Status and operations of a Bridge pump thread.
◆ Operation
Verbs for Bridge::Drainer.
| Enumerator |
|---|
| Toggle | Switch between Started and Paused.
|
| Flush | Push what is already held.
No destination flush.
|
◆ Status
Whether the Bridge worker is pumping.
Stopped is moved-from or no backend. There is no operation that stops a live Bridge; the destructor joins the thread.
| Enumerator |
|---|
| Started | Worker may pull when there is room.
|
| Paused | Worker does not pull.
Construction if high_water is 0.
|
| Stopped | No backend.
|
◆ ToString() [1/2]
|
|
nodiscardconstexprnoexcept |
Enumerator name of operation.
- Parameters
-
- Returns
- Stable name, or empty if unknown.
◆ ToString() [2/2]
|
|
nodiscardconstexprnoexcept |
Enumerator name of status.
- Parameters
-
- Returns
- Stable name, or empty if unknown.