?? nt.h
字號:
//
// OMNI thread implementation classes for NT threads.
//
#ifndef __omnithread_nt_h_
#define __omnithread_nt_h_
#include <windows.h>
#ifndef __BCPLUSPLUS__
#define OMNI_THREAD_WRAPPER \
unsigned __stdcall omni_thread_wrapper(LPVOID ptr);
#else
#define OMNI_THREAD_WRAPPER \
void _USERENTRY omni_thread_wrapper(void *ptr);
#endif
extern "C" OMNI_THREAD_WRAPPER;
#define OMNI_MUTEX_IMPLEMENTATION \
CRITICAL_SECTION crit;
#define OMNI_CONDITION_IMPLEMENTATION \
CRITICAL_SECTION crit; \
omni_thread* waiting_head; \
omni_thread* waiting_tail;
#define OMNI_SEMAPHORE_IMPLEMENTATION \
HANDLE nt_sem;
#define OMNI_THREAD_IMPLEMENTATION \
HANDLE handle; \
DWORD nt_id; \
void* return_val; \
HANDLE cond_semaphore; \
omni_thread* cond_next; \
omni_thread* cond_prev; \
BOOL cond_waiting; \
static int nt_priority(priority_t); \
friend class omni_condition; \
friend OMNI_THREAD_WRAPPER
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -