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

property Lock: TCriticalSection;

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.