5
votes
Vote UpVote

ThreadSafe Lock Manager: [1] Design

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 ...
Favorite? Off-Topic? gabr @ 2013-04-02 11:29

Statistics

Visits: 1034
Votes: 5
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Ericc
Horbs
Jørn E. Angeltveit
Radosław Kokoć
Zzzzz
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)