views:

108

answers:

1

Seems that Boost's shared_mutex is non recursive.. Is there anyway around this? (without re implementing the whole stuff)

+1  A: 

You'll have to use shared_ptr in those cases. Put your mutex in a shared_ptr and it'll do ref-counting on your mutex, which will gave you simmilar results.

Gianni
how is a boost::weak_ptr related to a boost::shared_mutex?
Sam Miller
@Sam sorry, I thought of something and wrote another entirely. I've edited my post to make it clearer/correct.
Gianni