Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
mutex_lock(myLock); time_t vTime = ::time(NULL); struct timespec myTime; myTime.tv_sec = vTime + 30; // 30 secs more than current time myTime.tv_nsec = 0; cond_timedwait(&myCond, &myMutex, &myTime); // This will sleep for 30 secs and then wakeup // fo watever you want. mutex_unlock(myLock);
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.