|
|
@ -73,7 +73,7 @@ namespace epee
|
|
|
|
mlocked(const T &&t): T(t) { mlocker::lock(this, sizeof(T)); }
|
|
|
|
mlocked(const T &&t): T(t) { mlocker::lock(this, sizeof(T)); }
|
|
|
|
mlocked(const mlocked<T> &&mt): T(mt) { 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<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>
|
|
|
|
template<typename T>
|
|
|
|