Quantcast
Channel: How is std::condition_variable::wait implemented? - Stack Overflow
Viewing all articles
Browse latest Browse all 2

How is std::condition_variable::wait implemented?

$
0
0

I was trying to search for how std::conidition_variable::wait is implemented in the standard library on my local machine, I can see wait_unitl but I cannot find wait.

My question is, how is the wait function implemented internally, how would one make a thread sleep indefinitely, is it using some long timed sleep or something entirely different that is OS-specific?

Thanks!


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images