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 ()
 
voidmain ()
 Main thread function, executed in the new thread after creation.
 
bool done ()
 
void run (int _fd, std::string what)
 
- Public Member Functions inherited from wibble::sys::Thread
virtual ~Thread ()
 
void start ()
 Start the thread.
 
void startDetached ()
 Start the thread in the detached state.
 
voidjoin ()
 Join the thread.
 
void detach ()
 Put the thread in the detached state.
 
void cancel ()
 Send a cancellation request to the thread.
 
void kill (int signal)
 Sent a signal to the thread.
 

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 charthreadTag ()
 Short tag describing this thread, used in error messages and identification.
 
void testcancel ()
 Callback function used to start the thread.
 

Constructor & Destructor Documentation

◆ Writer()

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

Member Function Documentation

◆ done()

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

References data, mutex, and running.

Referenced by main().

◆ 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().

◆ run()

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

Member Data Documentation

◆ close

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

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

◆ closed

bool wibble::sys::Pipe::Writer::closed

◆ data

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

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

◆ fd

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

Referenced by main(), and run().

◆ mutex

wibble::sys::Mutex wibble::sys::Pipe::Writer::mutex

◆ running

bool wibble::sys::Pipe::Writer::running

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