Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

threadutil.cpp File Reference

#include "threadutil.h"
#include <opie2/odebug.h>
#include <qsocketnotifier.h>
#include <pthread.h>
#include <assert.h>
#include <unistd.h>
#include <errno.h>

Include dependency graph for threadutil.cpp:

Go to the source code of this file.

Functions

 WaitCondition::WaitCondition ()
 WaitCondition::~WaitCondition ()
bool WaitCondition::wait ()
bool WaitCondition::wait (Mutex &mutex)
void WaitCondition::wakeOne ()
void WaitCondition::wakeAll ()
static void terminate_thread (void *arg)
static void * start_thread (void *arg)
 Thread::Thread ()
 Thread::~Thread ()
void Thread::start ()
void Thread::terminate ()
bool Thread::wait ()
bool Thread::isRunning () const
void Thread::exit ()


Function Documentation

static void* start_thread void *  arg  )  [static]
 

Definition at line 157 of file threadutil.cpp.

References data, ThreadUtil::Thread::exit(), Thread::Data::isRunning, Thread::Data::run(), and terminate_thread().

Referenced by Thread::start().

static void terminate_thread void *  arg  )  [static]
 

Definition at line 146 of file threadutil.cpp.

References assert, data, Thread::Data::finishCondition, Thread::Data::guard, Thread::Data::isRunning, and ThreadUtil::WaitCondition::wakeAll().

Referenced by start_thread().

void Thread::exit  ) 
 

Definition at line 231 of file threadutil.cpp.

bool Thread::isRunning  )  const
 

Definition at line 225 of file threadutil.cpp.

References ThreadUtil::Thread::d.

void Thread::start  ) 
 

Definition at line 186 of file threadutil.cpp.

References attributes, ThreadUtil::Thread::d, odebug, oendl, and start_thread().

void Thread::terminate  ) 
 

Definition at line 207 of file threadutil.cpp.

References ThreadUtil::Thread::d.

Thread::Thread  ) 
 

Definition at line 174 of file threadutil.cpp.

References d.

bool Thread::wait  ) 
 

Definition at line 216 of file threadutil.cpp.

References ThreadUtil::Thread::d.

Thread::~Thread  ) 
 

Definition at line 180 of file threadutil.cpp.

References assert, ThreadUtil::Thread::d, and Thread::~Thread().

Referenced by Thread::~Thread().

bool WaitCondition::wait Mutex mutex  ) 
 

Definition at line 112 of file threadutil.cpp.

References ThreadUtil::Mutex::d, and ThreadUtil::WaitCondition::d.

bool WaitCondition::wait  ) 
 

Definition at line 105 of file threadutil.cpp.

References ThreadUtil::Mutex::lock(), and ThreadUtil::WaitCondition::wait().

WaitCondition::WaitCondition  ) 
 

Definition at line 95 of file threadutil.cpp.

void WaitCondition::wakeAll  ) 
 

Definition at line 122 of file threadutil.cpp.

References ThreadUtil::WaitCondition::d.

void WaitCondition::wakeOne  ) 
 

Definition at line 117 of file threadutil.cpp.

References ThreadUtil::WaitCondition::d.

WaitCondition::~WaitCondition  ) 
 

Definition at line 100 of file threadutil.cpp.

References ThreadUtil::WaitCondition::d, and WaitCondition::~WaitCondition().

Referenced by WaitCondition::~WaitCondition().


Generated on Sat Nov 5 17:00:44 2005 for OPIE by  doxygen 1.4.2