#include "OW_config.h"
#include "OW_ThreadImpl.hpp"
#include "OW_Mutex.hpp"
#include "OW_Assertion.hpp"
#include "OW_Thread.hpp"
#include "OW_NonRecursiveMutexLock.hpp"
#include "OW_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>
Include dependency graph for OW_ThreadImpl.cpp:
Go to the source code of this file.
Namespaces | |
namespace | OW_NAMESPACE |
namespace | OW_NAMESPACE::ThreadImpl |
Defines | |
#define | OW_THREAD_CONVERTER UInt32 |
Functions | |
void | OW_NAMESPACE::ThreadImpl::sleep (UInt32 milliSeconds) |
Suspend execution of the current thread until the given number of milliSeconds have elapsed. | |
void | OW_NAMESPACE::ThreadImpl::yield () |
Voluntarily yield to the processor giving the next thread in the chain the opportunity to run. | |
static void * | OW_NAMESPACE::ThreadImpl::threadStarter (void *arg) |
static void | OW_NAMESPACE::ThreadImpl::initializeTheKey () |
int | OW_NAMESPACE::ThreadImpl::createThread (Thread_t &handle, ThreadFunction func, void *funcParm, UInt32 threadFlags) |
Starts a thread running the given function. | |
void | OW_NAMESPACE::ThreadImpl::exitThread (Thread_t &handle, Int32 rval) |
Exit thread method. | |
UInt64 | OW_NAMESPACE::ThreadImpl::thread_t_ToUInt64 (Thread_t thr) |
Convert a Thread_t to an UInt64. | |
void | OW_NAMESPACE::ThreadImpl::destroyThread (Thread_t &handle) |
Destroy any resources associated with a thread that was created with the createThread method. | |
int | OW_NAMESPACE::ThreadImpl::setThreadDetached (Thread_t &handle) |
Set a thread that was previously in the joinable state to a detached state. | |
int | OW_NAMESPACE::ThreadImpl::joinThread (Thread_t &handle, Int32 &rval) |
Join a thread that has been previously set to joinable. | |
void | OW_NAMESPACE::ThreadImpl::testCancel () |
Test if this thread has been cancelled. | |
void | OW_NAMESPACE::ThreadImpl::saveThreadInTLS (void *pTheThread) |
void | OW_NAMESPACE::ThreadImpl::sendSignalToThread (Thread_t threadID, int signo) |
void | OW_NAMESPACE::ThreadImpl::cancel (Thread_t threadID) |
Variables | |
ThreadFunction | m_func |
void * | m_funcParm |
static size_t | val |
static bool | needsSetting |
default_stack_size | OW_NAMESPACE::ThreadImpl::g_theDefaultStackSize |
pthread_once_t | OW_NAMESPACE::ThreadImpl::once_control = PTHREAD_ONCE_INIT |
pthread_key_t | OW_NAMESPACE::ThreadImpl::theKey |
|
Definition at line 290 of file OW_ThreadImpl.cpp. Referenced by OW_NAMESPACE::ThreadImpl::thread_t_ToUInt64(). |
|
Definition at line 147 of file OW_ThreadImpl.cpp. |
|
Definition at line 148 of file OW_ThreadImpl.cpp. |
|
Definition at line 217 of file OW_ThreadImpl.cpp. Referenced by OW_NAMESPACE::ThreadImpl::createThread(). |
|