RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMultiReadExclusiveWriteSynchronizer.EndRead Method

Removes a thread from the internal list of threads that are accessing the protected memory.

Pascal
procedure EndRead;
C++
__fastcall EndRead();

Call EndRead after reading from the memory protected by the multi-read exclusive-write synchronizer. Each call to BeginRead must be matched by a call to EndRead, or other threads can never return from the BeginWrite method. 

 

BeginRead 

BeginWrite 

Using the Multi-read Exclusive-write Synchronizer

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!