JCL Help:TJclMultiReadExclusiveWrite.EndWrite

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Signals that the thread has finished writing to the resource.


Pascal

 public procedure EndWrite;


Description

EndWrite signals that the thread holding write-access to the protected resource has finished writing to the resource. You must call EndWrite once for each time you called BeginWrite. Even though it is safe to call EndWrite while not holding write-access you should not do so. The same is true for calling EndRead while currently holding write-access. Once the calls to BeginWrite and EndWrite are balanced so that the write-lock is released, other 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