|
CPN
Computational Process Networks
|
#include <AutoLock.h>
Collaboration diagram for AutoLock< Lockable >:Public Member Functions | |
| AutoLock (Lockable &mutex_) | |
| AutoLock (Lockable &mutex_, bool lock) | |
| ~AutoLock () | |
| void | Unlock () |
| void | Lock () |
Private Attributes | |
| Lockable & | mutex |
| int | count |
An automatic lock that ensures the lock is left in the state at construction when destroyed.
Definition at line 35 of file AutoLock.h.
Create a new AutoLock and lock the mutex.
| mutex_ | the mutex |
Definition at line 41 of file AutoLock.h.
References AutoLock< Lockable >::Lock().
Here is the call graph for this function:Create a new AutoLock and only lock the mutex if lock is true
| mutex_ | the mutex |
| lock | true to lock or false to not |
Definition at line 49 of file AutoLock.h.
References AutoLock< Lockable >::Lock().
Here is the call graph for this function:Definition at line 53 of file AutoLock.h.
References AutoLock< Lockable >::count, and AutoLock< Lockable >::Unlock().
Here is the call graph for this function:
|
inline |
Unlock the mutex
Definition at line 69 of file AutoLock.h.
References AutoLock< Lockable >::count, and AutoLock< Lockable >::mutex.
Referenced by AutoLock< Lockable >::AutoLock(), and CPN::Kernel::EntryPoint().
Here is the caller graph for this function:
|
inline |
Lock the mutex
Definition at line 61 of file AutoLock.h.
References AutoLock< Lockable >::count, and AutoLock< Lockable >::mutex.
Referenced by D4R::Node::Block(), CPN::RemoteQueueHolder::Cleanup(), CPN::ConnectionServer::ConnectWriter(), CPN::Kernel::CreateExternalEndpoint(), CPN::Kernel::CreateReaderEndpoint(), CPN::Kernel::CreateWriterEndpoint(), CPN::Kernel::DestroyExternalEndpoint(), CPN::RemoteContextClient::DispatchMessage(), CPN::Kernel::EntryPoint(), CPN::ConnectionServer::PendingConnection::Get(), CPN::Kernel::GetExternalIQueue(), CPN::Kernel::GetExternalOQueue(), CPN::PseudoNode::ReleaseReader(), CPN::PseudoNode::ReleaseWriter(), CPN::ConnectionServer::PendingConnection::Set(), CPN::PseudoNode::Shutdown(), D4R::Node::Transmit(), and AutoLock< Lockable >::~AutoLock().
Here is the caller graph for this function:Definition at line 76 of file AutoLock.h.
Referenced by AutoLock< Lockable >::Lock(), AutoLock< Lockable >::Unlock(), and AutoLock< Lockable >::~AutoLock().
|
private |
Definition at line 75 of file AutoLock.h.
Referenced by AutoLock< Lockable >::Lock(), and AutoLock< Lockable >::Unlock().
1.8.5