Liste des Groupes | Revenir à cl c++ |
What upper limit? The max number of threads allowed in the protected sectionThe static parmeter is the maximum counter and the the two is the
above is 2, not 10. Or do you mean it'll only count up to 10 threads waiting
and ignore any beyond that? What happens if thread 11 comes along?
Condition variables IMO are unintuitive (eg the internal state change fromIf you have a producer-consumer-pattern condition variables are the most
waiting on condition variable to waiting on mutex is completely invisible)
and hence very prone to logical bugs. I tend to avoid them where possible.
Les messages affichés proviennent d'usenet.