Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Thread-safe STL-compatible Wrapper Container

39 views
Skip to first unread message

Nordlöw

unread,
Apr 16, 2008, 8:46:32 AM4/16/08
to
Does the Boost C++ Libraries (www.boost.org) or any other library
offer a generalized STL-compatible container wrapper for making any
other STL-container thread-safe, typically by surrounding all member
functions with scoped_lock() and scoped_unlock().

/Nordlöw

James Kanze

unread,
Apr 16, 2008, 10:36:48 AM4/16/08
to

Why would anyone bother? It would be totally useless.

--
James Kanze (GABI Software) email:james...@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

Marcel Müller

unread,
Apr 16, 2008, 11:04:39 AM4/16/08
to
Nordlöw schrieb:

The concept of locking function calls will never make an iteration
thread-safe in a way that the result is well defined. Iterating over a
changing collection is intrinsically thread-unsafe.


Marcel

0 new messages