Guitar
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
UnixProcessThread Class Reference

Public Member Functions

void init (std::mutex *mutex, bool use_input)
 
void reset ()
 
 UnixProcessThread ()=default
 
 ~UnixProcessThread ()
 
void writeInput (char const *ptr, int len)
 
void closeInput ()
 
void start ()
 
void stop ()
 
void wait ()
 

Public Attributes

std::thread thread
 
std::mutex * mutex = nullptr
 
std::vector< std::string > argvec
 
std::vector< char * > args
 
std::deque< char > inq
 
std::deque< char > outq
 
std::deque< char > errq
 
bool use_input = false
 
int fd_in_read = -1
 
int pid = 0
 
int exit_code = -1
 
bool close_input_later = false
 

Protected Member Functions

void run ()
 

Constructor & Destructor Documentation

◆ UnixProcessThread()

UnixProcessThread::UnixProcessThread ( )
default

◆ ~UnixProcessThread()

UnixProcessThread::~UnixProcessThread ( )
inline
Here is the call graph for this function:

Member Function Documentation

◆ closeInput()

void UnixProcessThread::closeInput ( )
inline

◆ init()

void UnixProcessThread::init ( std::mutex *  mutex,
bool  use_input 
)
inline

◆ reset()

void UnixProcessThread::reset ( )
inline

◆ run()

void UnixProcessThread::run ( )
inlineprotected
Here is the call graph for this function:

◆ start()

void UnixProcessThread::start ( )
inline
Here is the call graph for this function:

◆ stop()

void UnixProcessThread::stop ( )
inline

◆ wait()

void UnixProcessThread::wait ( )
inline
Here is the call graph for this function:

◆ writeInput()

void UnixProcessThread::writeInput ( char const *  ptr,
int  len 
)
inline

Member Data Documentation

◆ args

std::vector<char *> UnixProcessThread::args

◆ argvec

std::vector<std::string> UnixProcessThread::argvec

◆ close_input_later

bool UnixProcessThread::close_input_later = false

◆ errq

std::deque<char> UnixProcessThread::errq

◆ exit_code

int UnixProcessThread::exit_code = -1

◆ fd_in_read

int UnixProcessThread::fd_in_read = -1

◆ inq

std::deque<char> UnixProcessThread::inq

◆ mutex

std::mutex* UnixProcessThread::mutex = nullptr

◆ outq

std::deque<char> UnixProcessThread::outq

◆ pid

int UnixProcessThread::pid = 0

◆ thread

std::thread UnixProcessThread::thread

◆ use_input

bool UnixProcessThread::use_input = false

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