12 Sep
2009
12 Sep
'09
5:07 p.m.
Moritz escribió:
Ion Gaztañaga wrote:
Are you using a named_mutex with named_condition? named_condition does not work with interprocess_mutexeses. I think the line says it:
I am using it with:
sharable_lock
lock(mtx) named_condition.wait(lock)
It should be named_mutex. Condition variables are only compatible with plain mutexes, not sharable or upgradable mutexes. That assertion was added to verify this at compile time.
Best regards, Moritz
Best, Ion