Table of Contents

TTMSMCPPrompts.Lock Property

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

API unit family: TMS.MCP.Prompts Declaring type: TTMSMCPPrompts Type: TCriticalSection

Syntax

property Lock: TCriticalSection;

Remarks

Acquire this lock before calling Free directly on a prompt obtained from FindByName; freeing an item is not otherwise synchronized with a concurrent read.