OpenMPTL - Helper Library
C++ Microprocessor Template Library
Public Member Functions | List of all members
mptl::sim::stdio_terminal< Tp > Class Template Reference

Simulate a terminal (Tp) on stdin/stdout, by starting rx/tx threads directly manipulating the fifo of Tp::stream_device_type. More...

#include <terminal_sim.hpp>

Public Member Functions

 stdio_terminal (reg_reaction const &r)
 
template<typename rx_trigger_regmask_type , typename tx_trigger_regmask_type >
void react (void)
 

Detailed Description

template<typename Tp>
class mptl::sim::stdio_terminal< Tp >

For use in reg_reaction::react().

NOTE: The threads use std::cin and std::cout without mutexes!

Constructor & Destructor Documentation

◆ stdio_terminal()

template<typename Tp >
mptl::sim::stdio_terminal< Tp >::stdio_terminal ( reg_reaction const &  r)
inline

Member Function Documentation

◆ react()

template<typename Tp >
template<typename rx_trigger_regmask_type , typename tx_trigger_regmask_type >
void mptl::sim::stdio_terminal< Tp >::react ( void  )
inline

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