头文件有#include <pthread.h> #include <sys/time.h> #include "thread.h"相关代码为void Thread::sleep(unsigned int milliSeconds) { timeval timeout = { milliSeconds/1000, milliSeconds%1000}; select(0, NULL, NULL, NULL, &timeout); }
万千封印
MMMHUHU
相关分类