#include <sync_w32.h>
Public Types | |
| enum | ThreadPriority { THR_PRI_LOW, THR_PRI_HIGH, THR_PRI_LOW, THR_PRI_HIGH } |
| enum | ThreadPriority { THR_PRI_LOW, THR_PRI_HIGH, THR_PRI_LOW, THR_PRI_HIGH } |
| typedef void(thread_proc * | thread_proc_t )(void *) |
| typedef void(thread_proc * | thread_proc_t )(void *) |
Public Member Functions | |
| void | create (thread_proc_t f, void *arg) |
| void | join () |
| void | detach () |
| void | setPriority (ThreadPriority pri) |
| void | create (thread_proc_t f, void *arg) |
| void | setPriority (ThreadPriority pri) |
| void | join () |
| void | detach () |
| dbThread () | |
| ~dbThread () | |
Static Public Member Functions | |
| static void | sleep (time_t sec) |
| static int | numberOfProcessors () |
| static void | sleep (time_t sec) |
| static int | numberOfProcessors () |
Private Attributes | |
| pthread_t | thread |
| HANDLE | h |
| typedef void(thread_proc* thread_proc_t)(void *) |
| typedef void(thread_proc* thread_proc_t)(void *) |
| enum ThreadPriority |
| enum ThreadPriority |
| dbThread | ( | ) | [inline] |
| ~dbThread | ( | ) | [inline] |
| static void sleep | ( | time_t | sec | ) | [inline, static] |
| void create | ( | thread_proc_t | f, | |
| void * | arg | |||
| ) | [inline] |
| void join | ( | ) | [inline] |
| void detach | ( | ) | [inline] |
| void setPriority | ( | ThreadPriority | pri | ) | [inline] |
| int numberOfProcessors | ( | ) | [static] |
| static void sleep | ( | time_t | sec | ) | [inline, static] |
| void create | ( | thread_proc_t | f, | |
| void * | arg | |||
| ) | [inline] |
| void setPriority | ( | ThreadPriority | pri | ) | [inline] |
| void join | ( | ) | [inline] |
| void detach | ( | ) | [inline] |
| static int numberOfProcessors | ( | ) | [inline, static] |
pthread_t thread [private] |
HANDLE h [private] |