Add EnterCriticalSection to appropr. interfaces declarations
Status: Beta
Brought to you by:
rdm_30
This would prove to be really useful to add
EnterCriticalSection function declaration to any interface
which is related to objects with thread-safety support.
So far, I see no way to enter critical section of, say
TLinkedList, which is referenced via Interface.
For example:
...
Var
MyList:IList;
...
MyList:=TLinkedList.Create;
...
Now I need to make sure noone will mess with MyList
while I do something to its contents. But I don't see a
nice way to do this. I think that adding declaration of
EnterCriticalSection into, say, ICollection interface would
solve the problem.