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

interface for a polled input channel More...

#include <channels.h>

Inheritance diagram for bmptk::input_channel_polled< t >:
bmptk::input_output_channel_polled< t >

Public Member Functions

virtual bool get_will_not_block ()=0
 check whether a get() call will not block
 
virtual t get ()=0
 get one data item
 

Detailed Description

template<class t>
class bmptk::input_channel_polled< t >

interface for a polled input channel

Definition at line 54 of file channels.h.

Member Function Documentation

template<class t >
virtual t bmptk::input_channel_polled< t >::get ( )
pure virtual

get one data item

When the channel is not ready to deliver a data item this call will block until the channel is ready. get_will_not_block() can be called first to avoid blocking.


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