Skip to main content
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

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

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.