mAdD INDIAN
Diamond Member
I'd post this in the Software, Programming, and Games forum but it seems to be mostly about games and not much programming.
Anyway, this question is for anyone experienced with multithreaded programming in C using pthreads.
Is there a way to synchronize threads based on an arbritary value of the variable using condition variables?
For example, can I make a thread wait until the value of a variable is 10. So as soon as that variable is incremented to 10, the thread will wake up?
Is this even possible?
Anyway, this question is for anyone experienced with multithreaded programming in C using pthreads.
Is there a way to synchronize threads based on an arbritary value of the variable using condition variables?
For example, can I make a thread wait until the value of a variable is 10. So as soon as that variable is incremented to 10, the thread will wake up?
Is this even possible?