MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / LockObject

Function LockObject

src/commons/allocators.h:170–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168// Intended for non-dynamically allocated structures.
169//
170template<typename T> void LockObject(const T &t) {
171 LockedPageManager::Instance().LockRange((void*)(&t), sizeof(T));
172}
173
174template<typename T> void UnlockObject(const T &t) {
175 OPENSSL_cleanse((void*)(&t), sizeof(T));

Callers 2

CKeyMethod · 0.85
SetMasterMethod · 0.85

Calls 1

LockRangeMethod · 0.80

Tested by

no test coverage detected