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

Public Methods | |
| 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 Methods | |
| 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. |
|
|
return caller's id |
|
|
|
|
|
|
|
|
run the thread Implemented in BBThread. |
|
|
set the unique id associate with the thread. |
|
|
set the caller's id |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Initial value: (
pthread_attr_init (&(Thread::attr)),
pthread_attr_setscope (&(Thread::attr), PTHREAD_SCOPE_SYSTEM),
Thread::attr
) |
|
|
|
|
|
|
|
|
|
|
|
Initial value: (
sigemptyset (&(Thread::sigset)),
sigaddset (&(Thread::sigset), Thread::SIGAPPLY),
(Thread::sigset)
) |
1.2.18