AXCEL C++ Framework
Elegance through abstraction
Public Member Functions | Static Public Member Functions | Public Attributes
axcel::proc::thread Class Reference

Multithreading. More...

#include <axcel.h>

Inheritance diagram for axcel::proc::thread:
axcel::object

List of all members.

Public Member Functions

virtual string type ()
 Get type of object.
virtual operator string ()
 Convert to string.
 thread ()
 ~thread ()
 thread (void *(*tfunc)(void *))
bool start (void *param=0)
bool stop ()
bool join (void **ret=0)
bool tjoin (size_t ms, void **ret=0)
bool getret (void **retval=0)
proc::threadoperator= (void *(*tfunc)(void *))
proc::threadoperator= (proc::thread t)
bool operator!= (void *(*tfunc)(void *))
bool operator!= (proc::thread t)
bool operator== (void *(*tfunc)(void *))
bool operator== (proc::thread t)

Static Public Member Functions

static void exit (void *retval)
static proc::thread self ()

Public Attributes

pthread_t tid
size_t stack
void *(* sub )(void *)

Detailed Description

Multithreading.

Multithreading allow executing of multiple sub-procedures at the same time...kind of. Once a thread starts another thread, the original thread can continue it's execution as normal and later, can either wait for it to complete to get the return value or terminate it.

Definition at line 1910 of file axcel.h.


Constructor & Destructor Documentation

axcel::proc::thread::thread ( )

Definition at line 5819 of file axcel.cpp.

axcel::proc::thread::~thread ( )

Definition at line 5857 of file axcel.cpp.

axcel::proc::thread::thread ( void *(*)(void *)  tfunc)

Definition at line 5820 of file axcel.cpp.


Member Function Documentation

void axcel::proc::thread::exit ( void *  retval) [static]

Definition at line 5921 of file axcel.cpp.

bool axcel::proc::thread::getret ( void **  retval = 0)

Definition at line 5912 of file axcel.cpp.

bool axcel::proc::thread::join ( void **  ret = 0)

Definition at line 5879 of file axcel.cpp.

axcel::proc::thread::operator string ( ) [virtual]

Convert to string.

Returns:
Suitable string representation of object's data

Implements axcel::object.

Definition at line 288 of file axcel.cpp.

bool axcel::proc::thread::operator!= ( void *(*)(void *)  tfunc)

Definition at line 5826 of file axcel.cpp.

bool axcel::proc::thread::operator!= ( proc::thread  t)

Definition at line 5825 of file axcel.cpp.

proc::thread & axcel::proc::thread::operator= ( void *(*)(void *)  tfunc)

Definition at line 5821 of file axcel.cpp.

proc::thread & axcel::proc::thread::operator= ( proc::thread  t)

Definition at line 5822 of file axcel.cpp.

bool axcel::proc::thread::operator== ( void *(*)(void *)  tfunc)

Definition at line 5824 of file axcel.cpp.

bool axcel::proc::thread::operator== ( proc::thread  t)

Definition at line 5823 of file axcel.cpp.

proc::thread axcel::proc::thread::self ( ) [static]

Definition at line 5922 of file axcel.cpp.

bool axcel::proc::thread::start ( void *  param = 0)

Definition at line 5858 of file axcel.cpp.

bool axcel::proc::thread::stop ( )

Definition at line 5871 of file axcel.cpp.

bool axcel::proc::thread::tjoin ( size_t  ms,
void **  ret = 0 
)

Definition at line 5896 of file axcel.cpp.

string axcel::proc::thread::type ( ) [virtual]

Get type of object.

Returns:
string containing name of object's class.

Implements axcel::object.

Definition at line 262 of file axcel.cpp.


Member Data Documentation

Definition at line 1919 of file axcel.h.

void*(* axcel::proc::thread::sub)(void *)

Definition at line 1921 of file axcel.h.

Definition at line 1917 of file axcel.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Defines