The Delphi Geek – Few weeks ago I ran into a problem. I needed a thread-synchronizing code that would work similar to a critical section, but would allow me to lock “anything”. If I could limit myself to objects, I could live with TMonitor.Enter/Exit, but I specifically wanted to limit access to some string keys. [In a way, my problem was similar to a problem of locking access to specific items in a string-keyed dictionary. Details differed, though.] I was thinking about the problem and it turned out not to be a simple one. Yes, I could solve it by introducing a string-keyed dictionary of critical sections but ...
Visits by Source
Users who voted for this posting
Jørn E. Angeltveit