API Reference > OdApc Classes > OdApcDataReadWriteDispatcher Class
OdApcDataReadWriteDispatcher Class
OdApcDataReadWriteDispatcherOdApcDataReadWriteDispatcher
Syntax
C++
class OdApcDataReadWriteDispatcher : public OdRxObject;

RxThreadPoolService.h

This interface represents APC framework gateway. It provides functionality used for protecting data that usually is being accessed by many reading threads and few writing threads. It allows access to protecting data simultaneously by reading threads until no thread gains write access. Corresponding C++ library: TD_DbRoot

 
Name 
Description 
 
A calling thread waits until area is unlocked and enters it to read only. 
 
A calling thread leaves protected area. 
 
lock 
  1. Locks the entrance.
  2. Waits until all threads exit read state.
  3. Returns.
 
 
Locks the entrance while being in read state. 
 
Unlocks the entrance. 
 
Unlocks the entrance while staying in read state. 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.