/*
LockList, UnlockList example
The following example shows how to use the LockList and UnlockList methods to access a thread-safe version  of a TList object:
*/
TList *pList = MyThreadList->LockList();
try
{
  for (int X = 0; X < pList->Count; X++)
    Something(pList->Items[X]);
}
__finally
{
  MyThreadList->UnlockList();
}
 
