Status and operations of a Bridge pump thread.
More...
|
| constexpr std::string_view | ToString (Status status) noexcept |
| | Enumerator name of status.
|
| |
| constexpr std::string_view | ToString (Operation operation) noexcept |
| | Enumerator name of operation.
|
| |
Status and operations of a Bridge pump thread.
◆ Operation
Verbs for StormByte::Buffer::Bridge::Drainer.
| Enumerator |
|---|
| Toggle | Started ↔ 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. Ctor if high_water is 0.
|
| Stopped | No backend.
|
◆ ToString() [1/2]
| constexpr std::string_view StormByte::Buffer::IO::Drainer::ToString |
( |
Operation |
operation | ) |
|
|
constexprnoexcept |
Enumerator name of operation.
- Parameters
-
- Returns
- Stable name, or empty if unknown.
◆ ToString() [2/2]
| constexpr std::string_view StormByte::Buffer::IO::Drainer::ToString |
( |
Status |
status | ) |
|
|
constexprnoexcept |
Enumerator name of status.
- Parameters
-
- Returns
- Stable name, or empty if unknown.