Skip to main content
Table of Contents

TTMSMCPTools.Lock Property

Guards this collection's own registration methods (Add, Insert, RegisterTool) against a concurrent read of the collection, for example while tools/list is being served on another thread.

API unit family: TMS.MCP.Tools Declaring type: TTMSMCPTools Type: TCriticalSection

Syntax

TMS.MCP.Tools.hppPascalC++
property Lock: TCriticalSection;
__property System::Syncobjs::TCriticalSection* Lock = {read=FLock};

Remarks

Acquire this lock before calling Free directly on a tool obtained from FindByName or from the indexed Items property; freeing an item is not otherwise synchronized with a concurrent read.