ADTF
3.18.4
|
Implements thread safe access to the rpc::IRPCObject object. More...
Public Member Functions | |
cLockedRPCObject ()=default | |
Default CTOR. | |
cLockedRPCObject (const tRPCItem &oItem) | |
Construct with an tRPCItem and lock the shared mutex. More... | |
~cLockedRPCObject () | |
DTOR, unlocking any shared lock if previously locked. | |
cLockedRPCObject (const cLockedRPCObject &other) | |
Create a copy from other and add lock to the shared mutex. More... | |
cLockedRPCObject & | operator= (const cLockedRPCObject &other) |
Copy assignment from other . More... | |
cLockedRPCObject (cLockedRPCObject &&)=default | |
Default move construction. | |
cLockedRPCObject & | operator= (cLockedRPCObject &&)=default |
Default move assignment. | |
IRPCObject * | operator-> () |
Pointer like access to rpc object protected by *this via a shared lock. More... | |
operator bool () const | |
Bool conversion operator. More... | |
Private Types | |
typedef std::pair< a_util::concurrency::shared_mutex *, IRPCObject * > | tRPCRawItem |
Private Attributes | |
tRPCRawItem | m_oItem |
Implements thread safe access to the rpc::IRPCObject object.
Definition at line 48 of file rpc_object_registry.h.
cLockedRPCObject | ( | const tRPCItem & | oItem | ) |
Construct with an tRPCItem and lock the shared mutex.
[in] | oItem | The rpc item to gain exclusive access on |
cLockedRPCObject | ( | const cLockedRPCObject & | other | ) |
Create a copy from other
and add lock to the shared mutex.
[in] | other | Other object to create *this from |
operator bool | ( | ) | const |
Bool conversion operator.
true
if the rpc item is not nullptr
, false
otherwise. IRPCObject* operator-> | ( | ) |
Pointer like access to rpc object protected by *this via a shared lock.
nullptr
. cLockedRPCObject& operator= | ( | const cLockedRPCObject & | other | ) |
Copy assignment from other
.
[in] | other | Other object to assign *this from |