mardi 30 mai 2017

Boost condition variable with sharable mutex

In Boost interprocess, is it possible to use a condition variable with a sharable mutex? I have one writer and multiple readers that need to wait on the writer.

More specifically, using named_condition_any::wait fails because it internally calls unlock() but sharable_lock requires unlock_sharable(). How could I get around this?

Aucun commentaire:

Enregistrer un commentaire