CFx SDK Documentation
2022 SP0
|
#include <RxThreadPoolService.h>
Additional Inherited Members | |
Public Types inherited from OdArray< OdApcQueueHelper > | |
typedef A::size_type | size_type |
typedef OdApcQueueHelper * | iterator |
typedef const OdApcQueueHelper * | const_iterator |
typedef OdApcQueueHelper | value_type |
typedef const OdApcQueueHelper & | const_reference |
typedef OdApcQueueHelper & | reference |
Corresponding C++ library: TD_Db <group OdApc_Classes> class OdApcDataReadWriteDispatcherHelper : public OdSmartPtr<OdApcDataReadWriteDispatcher> { public: OdApcDataReadWriteDispatcherHelper( ) {} OdApcDataReadWriteDispatcherHelper( const OdApcDataReadWriteDispatcher* pObject, OdRxObjMod m ) : OdSmartPtr<OdApcDataReadWriteDispatcher>( pObject, m ) {} OdApcDataReadWriteDispatcherHelper( const OdApcDataReadWriteDispatcher* pObject ) : OdSmartPtr<OdApcDataReadWriteDispatcher>( pObject ) {} OdApcDataReadWriteDispatcherHelper( const OdRxObject* pObject ) : OdSmartPtr<OdApcDataReadWriteDispatcher>( pObject ) {} OdApcDataReadWriteDispatcherHelper( OdRxObject* pObject, OdRxObjMod m ) : OdSmartPtr<OdApcDataReadWriteDispatcher>( pObject, m ) {} OdApcDataReadWriteDispatcherHelper( const OdSmartPtr<OdApcDataReadWriteDispatcher>& pObject ) : OdSmartPtr<OdApcDataReadWriteDispatcher>( pObject ) {} OdApcDataReadWriteDispatcherHelper( const OdRxObjectPtr& pObject ) : OdSmartPtr<OdApcDataReadWriteDispatcher>( pObject ) {} OdApcDataReadWriteDispatcherHelper( const OdBaseObjectPtr& pObject ) : OdSmartPtr<OdApcDataReadWriteDispatcher>( pObject ) {}
using OdSmartPtr<OdApcDataReadWriteDispatcher>::operator =;
void init( OdRxThreadPoolService* pThreadPool ) { this = pThreadPool ? pThreadPool->newDataReadWriteDispatcher().get() : 0; }
void enter() { if( m_pObject ) { get()->enter(); } }
void leave() { if( m_pObject ) { get()->leave(); } }
void lock() { if( m_pObject ) { get()->lock(); } }
void unlock() { if( m_pObject ) { get()->unlock(); } }
void lockFromInside() { if( m_pObject ) { get()->lockFromInside(); } }
void unlockFromInside() { if( m_pObject ) { get()->unlockFromInside(); } } };
class OdReadWriteDispatcherAutoPass { public: OdReadWriteDispatcherAutoPass( OdApcDataReadWriteDispatcherHelper& lock ) : m_lock( lock ) { m_lock.enter(); } ~OdReadWriteDispatcherAutoPass() { m_lock.leave(); } private: OdApcDataReadWriteDispatcherHelper& m_lock; };
class OdReadWriteDispatcherAutoLock { public: OdReadWriteDispatcherAutoLock( OdApcDataReadWriteDispatcherHelper& lock ) : m_lock( lock ) { m_lock.lock(); } ~OdReadWriteDispatcherAutoLock() { m_lock.unlock(); } private: OdApcDataReadWriteDispatcherHelper& m_lock; };
class OdReadWriteDispatcherAutoLockFromInside { public: OdReadWriteDispatcherAutoLockFromInside( OdApcDataReadWriteDispatcherHelper& lock ) : m_lock( lock ) { m_lock.lockFromInside(); } ~OdReadWriteDispatcherAutoLockFromInside() { m_lock.unlockFromInside(); } private: OdApcDataReadWriteDispatcherHelper& m_lock; };
Corresponding C++ library: TD_Db <group OdApc_Classes>
Definition at line 642 of file RxThreadPoolService.h.
|
inline |
Definition at line 644 of file RxThreadPoolService.h.
|
inline |
Definition at line 652 of file RxThreadPoolService.h.