Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Channels

Buffered Channel
Unbuffered Channel

A channel is a model to communicate and synchronize Threads of Execution [2] via message passing.

Enumeration channel_op_status

channel operations return the state of the channel.

enum class channel_op_status {
    success,
    empty,
    full,
    closed,
    timeout
};
success

Effects:

Operation was successful.

empty

Effects:

channel is empty, operation failed.

full

Effects:

channel is full, operation failed.

closed

Effects:

channel is closed, operation failed.

timeout

Effects:

The operation did not become ready before specified timeout elapsed.



[2] The smallest ordered sequence of instructions that can be managed independently by a scheduler is called a Thread of Execution.


PrevUpHomeNext