#include <blackbox_thread.h>
Inheritance diagram for Thread:

This is a thread interface, built on posix threads.
Public Member Functions | |
| pthread_t | getpid () const |
| void | setpid (pthread_t _pid) |
| pthread_t | getppid () const |
| void | setppid (pthread_t _ppid) |
| virtual void | run (void)=0 |
| virtual | ~Thread () |
| Thread () | |
Static Public Member Functions | |
| void | terminate_thread (const Thread *t) |
| void | signal_thread (const Thread *t) |
| void | wait_thread (const Thread *t) |
| void | notify_parent (const Thread *t) |
| void | terminate_thread (const Thread &t) |
| void | signal_thread (const Thread &t) |
| void | wait_thread (const Thread &t) |
| void | notify_parent (const Thread &t) |
Static Public Attributes | |
| pthread_attr_t | attr |
| sigset_t | sigset |
| const int | SIGAPPLY = SIGRTMIN |
Protected Attributes | |
| pthread_t | pid |
| pthread_t | ppid |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return the unique id associate with the thread. |
|
|
set the unique id associate with the thread. |
|
|
return caller's id |
|
|
set the caller's id |
|
|
run the thread Implemented in BBThread. |
|
|
Initial value:
|
|
|
Initial value:
|
|
|
|
|
|
|
|
|
|
1.3.7