wibble
1.1
|
#include <pipe.h>
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) |
![]() | |
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 | |
![]() | |
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... | |
|
inline |
|
inline |
|
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().
|
inline |
References assert_eq, assert_neq, data, fd, mutex, running, and wibble::sys::Thread::start().
Referenced by wibble::sys::Pipe::write().
bool wibble::sys::Pipe::Writer::close |
Referenced by wibble::sys::Pipe::close(), and main().
bool wibble::sys::Pipe::Writer::closed |
wibble::sys::Mutex wibble::sys::Pipe::Writer::mutex |
Referenced by wibble::sys::Pipe::close(), done(), main(), and run().
bool wibble::sys::Pipe::Writer::running |
Referenced by wibble::sys::Pipe::close(), done(), main(), and run().