mirror of
https://github.com/monero-project/monero.git
synced 2025-07-30 11:58:42 -04:00
Merge pull request #4853
2b3595d0
various: do not propagate exception through dtor (moneromooo-monero)
This commit is contained in:
commit
398f7076bb
4 changed files with 11 additions and 4 deletions
|
@ -73,7 +73,7 @@ namespace epee
|
|||
mlocked(const T &&t): T(t) { mlocker::lock(this, sizeof(T)); }
|
||||
mlocked(const mlocked<T> &&mt): T(mt) { mlocker::lock(this, sizeof(T)); }
|
||||
mlocked<T> &operator=(const mlocked<T> &mt) { T::operator=(mt); return *this; }
|
||||
~mlocked() { mlocker::unlock(this, sizeof(T)); }
|
||||
~mlocked() { try { mlocker::unlock(this, sizeof(T)); } catch (...) { /* do not propagate */ } }
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue