摘要:
首先当然是先定义头文件Thread.h咯,如下:#ifndef _THREAD_H#define _THREAD_H#ifdef _WIN32#include <windows.h>#else#include <pthread.h>#endif#ifdef _WIN32typedef unsigned threadfunc_t;typedef void* threadparam_t;#define STDPREFIX __stdcall#elsetypedef void* threadfunc_t;typedef void* threadparam_t;#define 阅读全文