Bare Metal Programming Tool Kit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
bmptk::output_channel_polled_buffer< t, buffer_size > Class Template Reference

a buffered output channel More...

#include <channels.h>

Inheritance diagram for bmptk::output_channel_polled_buffer< t, buffer_size >:
bmptk::output_channel_polled< t >

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
 

Detailed Description

template<class t, int buffer_size>
class bmptk::output_channel_polled_buffer< t, buffer_size >

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.

Member Function Documentation

template<class t , int buffer_size>
void bmptk::output_channel_polled_buffer< t, buffer_size >::poll ( )
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.


The documentation for this class was generated from the following file: