Kyoto Cabinet
|
Threading device. More...
#include <kcthread.h>
Public Member Functions | |
Thread () | |
Default constructor. | |
virtual | ~Thread () |
Destructor. | |
virtual void | run ()=0 |
Perform the concrete process. | |
void | start () |
Start the thread. | |
void | join () |
Wait for the thread to finish. | |
void | detach () |
Put the thread in the detached state. | |
Static Public Member Functions | |
static void | exit () |
Terminate the running thread. | |
static void | yield () |
Yield the processor from the current thread. | |
static void | chill () |
Chill the processor by suspending execution for a quick moment. | |
static bool | sleep (double sec) |
Suspend execution of the current thread. | |
static int64_t | hash () |
Get the hash value of the current thread. |
Threading device.
kyotocabinet::Thread::Thread | ( | ) | [explicit] |
Default constructor.
virtual kyotocabinet::Thread::~Thread | ( | ) | [virtual] |
Destructor.
virtual void kyotocabinet::Thread::run | ( | ) | [pure virtual] |
Perform the concrete process.
void kyotocabinet::Thread::start | ( | ) |
Start the thread.
void kyotocabinet::Thread::join | ( | ) |
Wait for the thread to finish.
void kyotocabinet::Thread::detach | ( | ) |
Put the thread in the detached state.
static void kyotocabinet::Thread::exit | ( | ) | [static] |
Terminate the running thread.
static void kyotocabinet::Thread::yield | ( | ) | [static] |
Yield the processor from the current thread.
static void kyotocabinet::Thread::chill | ( | ) | [static] |
Chill the processor by suspending execution for a quick moment.
static bool kyotocabinet::Thread::sleep | ( | double | sec | ) | [static] |
Suspend execution of the current thread.
sec | the interval of the suspension in seconds. |
static int64_t kyotocabinet::Thread::hash | ( | ) | [static] |
Get the hash value of the current thread.