JCL Help:TJclMultiReadExclusiveWrite.EndRead

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Signals that the thread has finished reading from the resource.


Pascal

 public procedure EndRead;


Description

EndRead signals that the thread holding read-access to the protected resource has finished reading from the resource. You must call EndRead once for each time you called BeginRead. Even though it is safe to call EndRead while not holding read-access you should not do so. The same is true for calling EndWrite while currently holding read-access. Once all threads have released their read-access locks, currently blocked threads are released. The exact algorithm used to determine which threads to release depends on the Preferred value passed to the constructor.


About

Donator

Marcel van Brakel


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page