Soap.InvokeRegistry.TRemotableTypeRegistry.Lock

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Lock; virtual;

C++

virtual void __fastcall Lock();

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Soap.InvokeRegistry.pas
Soap.InvokeRegistry.hpp
Soap.InvokeRegistry TRemotableTypeRegistry

Description

Prevents other threads from accessing the type registry.

Lock uses a critical section to prevent simultaneous use of the type registry by multiple threads in the same application. Once one thread has called Lock to obtain access to the type registry, no other thread can return from the Lock method until the first thread has called the UnLock method to release its lock.

Lock is called automatically by the methods of TRemotableTypeRegistry.

See Also