头文件有
#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);
}
RISEBY
万千封印
MMMHUHU
随时随地看视频慕课网APP