wibble  1.1
Public Member Functions | Public Attributes | List of all members
wibble::sys::Pipe::Writer Struct Reference

#include <pipe.h>

Inheritance diagram for wibble::sys::Pipe::Writer:
Inheritance graph
[legend]
Collaboration diagram for wibble::sys::Pipe::Writer:
Collaboration graph
[legend]

Public Member Functions

 Writer ()
 
void * main ()
 Main thread function, executed in the new thread after creation. More...
 
bool done ()
 
void run (int _fd, std::string what)
 
- Public Member Functions inherited from wibble::sys::Thread
virtual ~Thread ()
 
void start ()
 Start the thread. More...
 
void startDetached ()
 Start the thread in the detached state. More...
 
void * join ()
 Join the thread. More...
 
void detach ()
 Put the thread in the detached state. More...
 
void cancel ()
 Send a cancellation request to the thread. More...
 
void kill (int signal)
 Sent a signal to the thread. More...
 

Public Attributes

int fd
 
bool close
 
std::string data
 
bool running
 
bool closed
 
wibble::sys::Mutex mutex
 

Additional Inherited Members

- Protected Member Functions inherited from wibble::sys::Thread
virtual const char * threadTag ()
 Short tag describing this thread, used in error messages and identification. More...
 
void testcancel ()
 Callback function used to start the thread. More...
 

Constructor & Destructor Documentation

wibble::sys::Pipe::Writer::Writer ( )
inline

Member Function Documentation

bool wibble::sys::Pipe::Writer::done ( )
inline

References data, mutex, and running.

Referenced by main().

void* wibble::sys::Pipe::Writer::main ( )
inlinevirtual

Main thread function, executed in the new thread after creation.

When main() exits, the new thread ends and main() result will be the thread exit result

Implements wibble::sys::Thread.

References wibble::sys::Pipe::blocking(), close, data, done(), fd, mutex, running, and wibble::sys::Pipe::write().

void wibble::sys::Pipe::Writer::run ( int  _fd,
std::string  what 
)
inline

Member Data Documentation

bool wibble::sys::Pipe::Writer::close

Referenced by wibble::sys::Pipe::close(), and main().

bool wibble::sys::Pipe::Writer::closed
std::string wibble::sys::Pipe::Writer::data

Referenced by done(), main(), and run().

int wibble::sys::Pipe::Writer::fd

Referenced by main(), and run().

wibble::sys::Mutex wibble::sys::Pipe::Writer::mutex
bool wibble::sys::Pipe::Writer::running

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