Closed jmuia closed 5 years ago
bump 😄
Question incorrectly states that cond_wait
is "inside a for loop", but the code examples earlier in the section have it inside a while loop. (Which makes sense, because a for loop would stop checking after n failed attempts).
The code example, queue_cond.c, also uses a while
loop (lines 64 & 76).
Thanks!
Section 10.4