#include <rpc_object_registry.h>
Implements thread safe access to the rpc::IRPCObject object
◆ cLockedRPCObject() [1/2]
| rpc::cRPCObjectsRegistry::cLockedRPCObject::cLockedRPCObject |
( |
const tRPCItem & | oItem | ) |
|
Construct with an tRPCItem and lock the shared mutex
- Parameters
-
| [in] | oItem | The rpc item to gain exclusive access on |
◆ ~cLockedRPCObject()
| rpc::cRPCObjectsRegistry::cLockedRPCObject::~cLockedRPCObject |
( |
| ) |
|
DTOR, unlocking any shared lock if previously locked
◆ cLockedRPCObject() [2/2]
| rpc::cRPCObjectsRegistry::cLockedRPCObject::cLockedRPCObject |
( |
const cLockedRPCObject & | other | ) |
|
Create a copy from other and add lock to the shared mutex
- Parameters
-
| [in] | other | Other object to create *this from |
◆ operator bool()
| rpc::cRPCObjectsRegistry::cLockedRPCObject::operator bool |
( |
| ) |
const |
Bool conversion operator
- Returns
true if the rpc item is not nullptr, false otherwise.
◆ operator->()
| IRPCObject * rpc::cRPCObjectsRegistry::cLockedRPCObject::operator-> |
( |
| ) |
|
Pointer like access to rpc object protected by *this via a shared lock
- Returns
- Pointer to locked rpc object. Might be
nullptr.
◆ operator=()
Copy assignment from other
- Parameters
-
| [in] | other | Other object to assign *this from |
The documentation for this class was generated from the following file:
- /workspace/conan/dev_essential/1.6.3/dw/stable/package/65324bff46e457721a7ba250afe9d61dc2b0e57a/include/rpc/rpc_object_registry.h