My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::util::Pipe::PipeFd Struct Reference

#include <Pipe.h>

Public Member Functions

 PipeFd ()
 
 ~PipeFd ()
 
void fillPipeFd ()
 

Public Attributes

pthread_cond_t retry_
 
bool retryIsReady_
 
int fd_
 

Detailed Description

Define a struct to encapsulate a file descriptor associated with either end of a pipe

Constructor & Destructor Documentation

Pipe::PipeFd::PipeFd ( )

Constructor.

....................................................................... PipeFd constructor

Pipe::PipeFd::~PipeFd ( )

Destructor.

....................................................................... PipeFd destructor function

Member Function Documentation

void Pipe::PipeFd::fillPipeFd ( )

Initialize the pipe fds.

Exceptions
Exception....................................................................... Set up the contents of a PipeFd

Member Data Documentation

int gcp::util::Pipe::PipeFd::fd_

The file descriptor

pthread_cond_t gcp::util::Pipe::PipeFd::retry_

A condition variable which can be used for other threads to signal when the fd is readable or writable.

bool gcp::util::Pipe::PipeFd::retryIsReady_

True when retry has been initialized.


The documentation for this struct was generated from the following files: