By: Eric Bron nli (eric.bron.delete@this.zvisuel.com), December 6, 2014 6:44 am
Room: Moderated Discussions
> > (and don't
> > have to leave it the same number of times unlike with std::recursive_mutex)
> There's also std::recursive_mutex which can be locked multiple times
yes, but as I mentioned it above you should release it the same number of times you have acquired it, thus the behavior isn't the same as WIN32 CS and some codes will be broken (badly broken, i.e. deadlock)
> > have to leave it the same number of times unlike with std::recursive_mutex)
> There's also std::recursive_mutex which can be locked multiple times
yes, but as I mentioned it above you should release it the same number of times you have acquired it, thus the behavior isn't the same as WIN32 CS and some codes will be broken (badly broken, i.e. deadlock)