• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Odd programming question on condition variables (using Pthread)

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?
 
Back
Top