|
Clio
develop
The XRP Ledger API server.
|
Represents a go-like channel, a multi-producer (Sender) multi-consumer (Receiver) thread-safe data pipe. More...
#include <Channel.hpp>
Classes | |
| class | Sender |
| The sending end of a channel. More... | |
| class | Receiver |
| The receiving end of a channel. More... | |
Static Public Member Functions | |
| static std::pair< Sender, Receiver > | create (auto &&context, std::size_t capacity) |
| Factory function to create channel components. | |
Represents a go-like channel, a multi-producer (Sender) multi-consumer (Receiver) thread-safe data pipe.
| T | The type of data the channel transfers |
| P | ProducerType::Multi (default) for multi-producer or ProducerType::Single for single-producer |
| C | ConsumerType::Multi (default) for multi-consumer or ConsumerType::Single for single-consumer |
|
inlinestatic |