You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem I have are the exception warranties.
What will be the state when there is a failure when trying to lock?
The resource will be unusable.
What the user should do when receiving an exception?
There are other uses similar to the relocker elsewhere in the library.
You need to mark those DTOR as noexcept(false); if they can throw.
Basically even while not being inside a stack unwinding that will make the software terminating.
relocker DTOR is implemented as the following:
that lock.lock() can throw (see unique_lock::lock in lock_types.hpp) leading to std::terminate if compiled in c++11 mode
The text was updated successfully, but these errors were encountered: