Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

L1394::Thread Class Reference

This class is a wrapper for a pthread-threads. More...

#include <Thread.hpp>

List of all members.

Public Types

typedef void *(* ThrFunction )(void *)

Public Member Functions

 Thread ()
 Constructor.
 ~Thread ()
 Destructor.
void start (ThrFunction start_routine, void *arg, pthread_attr_t *attr=0)
 Creates a new thread.
void kill ()
 Kills the thread.
int join ()
 Blocks until the thread terminates.
void exit ()
 Terminates the execution of the thread.
pthread_t getID ()
 returns the ThreadID


Detailed Description

This class is a wrapper for a pthread-threads.

Definition at line 132 of file Thread.hpp.


Member Typedef Documentation

typedef void*(* L1394::Thread::ThrFunction)(void *)
 

Definition at line 134 of file Thread.hpp.


Constructor & Destructor Documentation

L1394::Thread::Thread  ) 
 

Constructor.

Definition at line 114 of file Thread.cpp.

L1394::Thread::~Thread  ) 
 

Destructor.

Definition at line 116 of file Thread.cpp.


Member Function Documentation

void L1394::Thread::exit  )  [inline]
 

Terminates the execution of the thread.

Definition at line 163 of file Thread.hpp.

pthread_t L1394::Thread::getID  )  [inline]
 

returns the ThreadID

Definition at line 167 of file Thread.hpp.

int L1394::Thread::join  ) 
 

Blocks until the thread terminates.

Definition at line 128 of file Thread.cpp.

References L1394_FAILED, and L1394_SUCCESS.

Referenced by L1394_MM::Window::~Window().

void L1394::Thread::kill  ) 
 

Kills the thread.

Definition at line 134 of file Thread.cpp.

void L1394::Thread::start ThrFunction  start_routine,
void *  arg,
pthread_attr_t *  attr = 0
 

Creates a new thread.

The new thread applies the function start_routine passing it arg as first argument. The new thread terminates either explicitly, *

Parameters:
start_routine : pointer to the start_routine with type void* method(void*)
args : argument for the start_routine
attr : pthread attributes(see pthread manual)

Definition at line 118 of file Thread.cpp.

Referenced by L1394_MM::Window::start().


The documentation for this class was generated from the following files:
Generated on Wed Aug 24 00:36:45 2005 for L1394 by doxygen 1.4.2
L1394 library (NMM) grahics.cs.uni-sb.de/~repplix/l1394_home/