ucommon  7.0.0
About: GNU uCommon C++ is a portable and optimized class framework for writing C++ applications that need to use threads and support concurrent synchronization, and that use sockets, XML parsing, object serialization, thread-optimized string and data structure classes, etc..
  Fossies Dox: ucommon-7.0.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

keywait.cpp File Reference
#include <ucommon/secure.h>
#include <unistd.h>
#include <termios.h>
Include dependency graph for keywait.cpp:

Go to the source code of this file.

Functions

static void cleanup (void)
 
static void keyflush (void)
 
int main (int argc, char **argv)
 

Variables

static shell::flagopt helpflag ('h',"--help", _TEXT("display this list"))
 
static shell::flagopt althelp ('?', NULL, NULL)
 
static shell::numericopt timeout ('t', "--timeout", _TEXT("optional keyboard input timeout"), "seconds", 0)
 
static struct termios orig current
 

Function Documentation

◆ cleanup()

static void cleanup ( void  )
static

Definition at line 43 of file keywait.cpp.

Referenced by main().

◆ keyflush()

static void keyflush ( void  )
static

Definition at line 49 of file keywait.cpp.

References ch, and input.

Referenced by main().

◆ main()

Variable Documentation

◆ althelp

shell::flagopt althelp('?', NULL, NULL)
static

Referenced by main().

◆ current

◆ helpflag

shell::flagopt helpflag( 'h',"--help", _TEXT("display this list"))
static

Referenced by main().

◆ timeout

shell::numericopt timeout( 't', "--timeout", _TEXT("optional keyboard input timeout"), "seconds", 0)
static

Referenced by ucommon::RWLock::access(), ucommon::TimerQueue::event::arm(), ost::DCCPSocket::connect(), ucommon::array_reuse< T >::create(), ucommon::paged_reuse< T >::create(), ost::TimerPort::decTimer(), ucommon::ArrayReuse::get(), ucommon::PagerReuse::get(), ucommon::array_reuse< T >::get(), ucommon::paged_reuse< T >::get(), ucommon::MappedReuse::getTimed(), ucommon::mapped_reuse< T >::getTimed(), ost::TimerPort::incTimer(), ost::UDPReceive::isInputReady(), ost::UDPTransmit::isOutputReady(), ost::Serial::isPending(), ost::Socket::isPending(), ost::TCPSocket::isPendingConnection(), ost::DCCPSocket::isPendingConnection(), ost::UDPReceive::isPendingReceive(), ucommon::RWLock::reader::lock(), ucommon::RWLock::writer::lock(), ucommon::RecursiveMutex::lock(), main(), ucommon::RWLock::modify(), ucommon::ArrayRef::pull(), ucommon::stackref< T >::pull(), ucommon::queueref< T >::pull(), ucommon::ArrayRef::push(), ucommon::stackref< T >::push(), ucommon::queueref< T >::push(), ost::Socket::readData(), ost::Socket::readLine(), ucommon::Socket::readline(), ost::SerialService::run(), ucommon::Timer::set(), ucommon::ConditionalAccess::set(), ost::Event::set(), ost::TCPStream::setTimeout(), ost::TTYStream::setTimeout(), ost::TimerPort::setTimer(), ucommon::Thread::sleep(), ucommon::TimedEvent::sync(), ucommon::TimerQueue::event::timeout(), ucommon::ConditionVar::wait(), ucommon::Conditional::wait(), ost::Conditional::wait(), ost::Semaphore::wait(), ucommon::TimedEvent::wait(), ost::Event::wait(), ucommon::Barrier::wait(), ucommon::Semaphore::wait(), ucommon::Socket::wait(), ucommon::ListenSocket::wait(), ucommon::ConditionalAccess::waitBroadcast(), ucommon::Socket::waitSending(), ucommon::ConditionalAccess::waitSignal(), and ost::Socket::writeData().