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 a snapshot of the develop branch, built from commit 3bdf7dba54.
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