ThreadImpl.cpp File Reference

#include "blocxx/BLOCXX_config.h"
#include "blocxx/ThreadImpl.hpp"
#include "blocxx/Mutex.hpp"
#include "blocxx/Assertion.hpp"
#include "blocxx/Thread.hpp"
#include "blocxx/NonRecursiveMutexLock.hpp"
#include "blocxx/Format.hpp"
#include <cassert>
#include <cstring>
#include <cstddef>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <errno.h>
#include <signal.h>
#include <pthread.h>

Go to the source code of this file.

Namespaces

namespace  BLOCXX_NAMESPACE
namespace  BLOCXX_NAMESPACE::ThreadImpl

Defines

#define BLOCXX_THREAD_CONVERTER   UInt64

Functions

void BLOCXX_NAMESPACE::ThreadImpl::sleep (UInt32 milliSeconds)
 Suspend execution of the current thread until the given number of milliSeconds have elapsed.
void BLOCXX_NAMESPACE::ThreadImpl::yield ()
 Voluntarily yield to the processor giving the next thread in the chain the opportunity to run.
static void * BLOCXX_NAMESPACE::ThreadImpl::threadStarter (void *arg)
static void BLOCXX_NAMESPACE::ThreadImpl::initializeTheKey ()
int BLOCXX_NAMESPACE::ThreadImpl::createThread (Thread_t &handle, ThreadFunction func, void *funcParm, UInt32 threadFlags)
 Starts a thread running the given function.
void BLOCXX_NAMESPACE::ThreadImpl::exitThread (Thread_t &handle, Int32 rval)
 Exit thread method.
UInt64 BLOCXX_NAMESPACE::ThreadImpl::thread_t_ToUInt64 (Thread_t thr)
 Convert a Thread_t to an UInt64.
void BLOCXX_NAMESPACE::ThreadImpl::destroyThread (Thread_t &handle)
 Destroy any resources associated with a thread that was created with the createThread method.
int BLOCXX_NAMESPACE::ThreadImpl::setThreadDetached (Thread_t &handle)
 Set a thread that was previously in the joinable state to a detached state.
int BLOCXX_NAMESPACE::ThreadImpl::joinThread (Thread_t &handle, Int32 &rval)
 Join a thread that has been previously set to joinable.
void BLOCXX_NAMESPACE::ThreadImpl::testCancel ()
 Test if this thread has been cancelled.
void BLOCXX_NAMESPACE::ThreadImpl::saveThreadInTLS (void *pTheThread)
void BLOCXX_NAMESPACE::ThreadImpl::sendSignalToThread (Thread_t threadID, int signo)
void BLOCXX_NAMESPACE::ThreadImpl::cancel (Thread_t threadID)

Variables

ThreadFunction m_func
void * m_funcParm
static size_t val
static bool needsSetting
default_stack_size BLOCXX_NAMESPACE::ThreadImpl::g_theDefaultStackSize
pthread_once_t BLOCXX_NAMESPACE::ThreadImpl::once_control = PTHREAD_ONCE_INIT
pthread_key_t BLOCXX_NAMESPACE::ThreadImpl::theKey


Define Documentation

#define BLOCXX_THREAD_CONVERTER   UInt64
 

Definition at line 294 of file ThreadImpl.cpp.

Referenced by BLOCXX_NAMESPACE::ThreadImpl::thread_t_ToUInt64().


Variable Documentation

ThreadFunction m_func
 

Definition at line 149 of file ThreadImpl.cpp.

void* m_funcParm
 

Definition at line 150 of file ThreadImpl.cpp.

bool needsSetting [static]
 

Definition at line 219 of file ThreadImpl.cpp.

Referenced by BLOCXX_NAMESPACE::ThreadImpl::createThread().

size_t val [static]
 

Definition at line 218 of file ThreadImpl.cpp.

Referenced by BLOCXX_NAMESPACE::CmdLineParser::CmdLineParser(), BLOCXX_NAMESPACE::ThreadImpl::createThread(), BLOCXX_NAMESPACE::operator<<(), and BLOCXX_NAMESPACE::BinarySerialization::verifySignature().


Generated on Fri Jun 16 15:39:10 2006 for blocxx by  doxygen 1.4.6