Bare Metal Programming Tool Kit
|
a buffered output channel More...
#include <channels.h>
Public Member Functions | |
output_channel_polled_buffer (output_channel_polled< t > &output) | |
construct a buffer on top of an output channel | |
void | put (t c) |
put a data item | |
bool | put_will_not_block () |
report whether the channel is ready to accept a data item | |
void | poll () |
poll the channel | |
a buffered output channel
This class provides buffering for an output channel. Up to buffer_size data items will be buffered before the buffered channel will block.
Definition at line 80 of file channels.h.
|
inline |
poll the channel
This method will do the writing from the buffer to the underlying channel. It must be called 'regularly' to keep this activity going.
Definition at line 123 of file channels.h.