SpECTRE
v2023.10.11
|
A typesafe wrapper for a lock for synchronization of shared resources on a given node, with safe creation, destruction, and serialization. More...
#include <NodeLock.hpp>
Public Member Functions | |
NodeLock (CkMigrateMessage *) | |
NodeLock (const NodeLock &)=delete | |
NodeLock & | operator= (const NodeLock &)=delete |
NodeLock (NodeLock &&moved_lock) | |
NodeLock & | operator= (NodeLock &&moved_lock) |
void | lock () |
bool | try_lock () |
void | unlock () |
void | destroy () |
bool | is_destroyed () |
void | pup (PUP::er &p) |
A typesafe wrapper for a lock for synchronization of shared resources on a given node, with safe creation, destruction, and serialization.
This structure is a thin wrapper around the charm CmiNodeLock
, in the Converse library. On construction, this class creates a Converse nodelock, and frees the lock on destruction.