#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/NonRecursiveMutex.hpp"#include "blocxx/Condition.hpp"#include "blocxx/Timeout.hpp"#include "blocxx/Format.hpp"#include "blocxx/TimeoutTimer.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 UInt32 |
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::sleep (const Timeout &timeout) |
| Suspend execution of the current thread until the given number of seconds 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::SIGUSR1Handler (int sig) |
| static void | BLOCXX_NAMESPACE::ThreadImpl::doOneTimeThreadInitialization () |
| 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 | |
| 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 BLOCXX_THREAD_CONVERTER UInt32 |
Definition at line 371 of file ThreadImpl.cpp.
Referenced by BLOCXX_NAMESPACE::ThreadImpl::thread_t_ToUInt64().
| ThreadFunction m_func |
Definition at line 130 of file ThreadImpl.cpp.
| void* m_funcParm |
Definition at line 131 of file ThreadImpl.cpp.
bool needsSetting [static] |
Definition at line 245 of file ThreadImpl.cpp.
Referenced by BLOCXX_NAMESPACE::ThreadImpl::createThread().
size_t val [static] |
1.5.6