pthread sleep linux
Try this,
#include <unistd.h>
usleep(microseconds);
Just the thread. The POSIX documentation for sleep() says:
The
sleep()
function shall cause the calling thread to be suspended from execution...
Try this,
#include <unistd.h>
usleep(microseconds);
Just the thread. The POSIX documentation for sleep() says:
The
sleep()
function shall cause the calling thread to be suspended from execution...