From: stephan b. <st...@s1...> - 2004-12-20 16:21:03
|
On Monday 20 December 2004 12:42, Christian Prochnow wrote: ... > <code> > CriticalSection::Lock lck(cs); > for(list<String>::iterator i = l.begin(); i != l.end(); i++) > { > /* .. */ > } > </code> ... > What do you think ? That's the type of detail i was looking for. :) Thanks :) > Many c++ programmers don't like the idea of own container > implementations - instead one would stick with STL ones, which are, > in my opinion not powerfull enough. i was tinkering last night with a container locker: a class which gives you a handle to a given container and locks requests until you give the container back to it. i dunno if that's feasible, but it sounds like it'd work. Again, i have practically no real experience with MT environments, i only know some of the theory. > Would you like to have a copy of the experimental code ? > I could setup a temporary cvs server for it. Yes! :) :) :) :) i've got some patches in my local copy of the CVS tree, too. -- ----- st...@s1... http://s11n.net "...pleasure is a grace and is not obedient to the commands of the will." -- Alan W. Watts |