API Reference > OdApc Classes > OdApcDataReadWriteDispatcher Class > OdApcDataReadWriteDispatcher Methods > OdApcDataReadWriteDispatcher::lock Method
OdApcDataReadWriteDispatcher::lock Method
Syntax
C++
virtual void lock() = 0;
  1. Locks the entrance.
  2. Waits until all threads exit read state.
  3. Returns.

IMPORTANT: If calling thread calls enter() without leave(), it should call lockFromInside() to be not deadlocked.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.