|
threadmm::posix::thread< Client > Class Template Reference
[POSIX threads backend classes]
#include <threadmm/thread.hh>
Collaboration diagram for threadmm::posix::thread< Client >:
[legend]List of all members.
Detailed Description
template<typename Client>
class threadmm::posix::thread< Client >
POSIX thread implementation.
- See also:
- threadmm::basic_thread
|
Public Types |
typedef Client | client_type |
typedef ::threadmm::thread_specific<
client_type, thread_create,
thread_cleanup > | pool_type |
Public Member Functions |
| thread (int flags, int policy=regular, int priority=0, int gsize=-1, void *address=0, size_t ssize=0) |
virtual | ~thread () |
int | kind () const |
void * | stack (size_t &n) const |
size_t | guard_size () const |
int | scheduling (int flag, int priority) |
int | scheduling (int &flag) const |
void | cancel () |
void | detach () |
bool | equal (const client_type &other) |
void * | join () |
Static Public Member Functions |
bool | at_fork (void(*prep)(), void(*par)(), void(*chi)()) |
|
void | exit (void *retval) |
void | kill_others () |
int | cancellation (int type) |
int | concurrency () |
int | concurrency (int c) |
bool | disable_cancellation () |
bool | enable_cancellation () |
client_type & | self () |
void | test_cancel () |
void | yield () |
Protected Member Functions |
| thread () |
void | run (client_type *client) |
Friends |
struct | thread_create |
Member Typedef Documentation
|
Helper structure to set thread data, in case it doesn't exist.
|
Constructor & Destructor Documentation
template<typename Client> |
threadmm::posix::thread< Client >::thread |
( |
int |
flags, |
|
|
int |
policy = regular , |
|
|
int |
priority = 0 , |
|
|
int |
gsize = -1 , |
|
|
void * |
address = 0 , |
|
|
size_t |
ssize = 0 |
|
) |
[inline] |
|
Here is the call graph for this function:
Here is the call graph for this function:
Member Function Documentation
template<typename Client> |
bool threadmm::posix::thread< Client >::at_fork |
( |
void(*)() |
prep, |
|
|
void(*)() |
par, |
|
|
void(*)() |
chi |
|
) |
[inline, static] |
|
|
at fork handlers.
- Parameters:
-
| prep | Function executed before fork |
| par | Function executed in parent |
| chi | Function executed in child. |
- Returns:
- true if installation succeeded.
|
|
Cancel this thread from another thread.
|
|
Set the cancellation type.
|
|
Set the concurrency of the thread.
|
|
Get the concurrentcy of the thread.
|
|
Compare two threads for equality.
- Parameters:
-
| other | Other thread to compare to. |
- Returns:
- true if threads are equal, false otherwise.
|
|
Get the guard parameters.
|
|
Join to this thread.
The calling thread is joined to this thread, if this thread is joinable. That is, it is created with the joinable flag set. - Returns:
- the return value of the user overloaded thread member function operator().
|
Here is the call graph for this function:
|
Start the thread.
- Parameters:
-
| client | Pointer to client, or user-derived, object. |
|
|
Get the schedluing paramaters.
|
|
Get/Set the scheduling parameters.
|
|
Get current running thread.
|
Here is the call graph for this function:
|
Get the stack parameters.
|
|
Test if we've got a cancel.
|
Friends And Related Function Documentation
The documentation for this class was generated from the following file:
Top of page
Last update Tue Nov 9 12:40:51 2004
Christian Holm
Created by DoxyGen 1.3.9.1
|