Go Up to Coordinating threads Index
Some objects have built-in locking that prevents the execution of other threads from using that object instance.
VCL applications also include a thread-safe list object, System.Classes.TThreadList. Calling LockList returns the list object while also blocking other execution threads from using the list until the UnlockList method is called. Calls to TCanvas.Lock or TThreadList.LockList can be safely nested. The lock is not released until the last locking call is matched with a corresponding unlock call in the same thread.