I'm looking for a good name to give to data structures that are thread safe / internally synchronized.
The C++ standard uses the term atomic
, but atomic has some rather special meaning. Microsoft uses the term Concurrent
in their Thread-Safe Collections (or in C++ _concurrent
in the Parallel Containers).
What I really would like would be a generic wrapper for (value) types that provides a similar set of operations to what std::atomics do, but with a different name, and some typedefs derived from it. (use case: something like std::atomic for std::string)
Which of the following would you consider useful / not useful and why?
SynchronizedThingamajig
(orthingamajig_synchronized
orsynchronized_thingamajig
)Concurrent...
ThreadSafe...
Safe...
Parallel...
Locked...
Mutex
... orMutexed...
Multithreaded...
For the string example I gave, maybe a synchronized_string
or a concurrent_string
would make most sense, or would that clash with any other connotation?
Useful answer from comment:
-- Wandering Logic Jun 18 at 12:02
To which I might add that from the choices I gave, after thinking some more about it, only
concurrent
andsynchronized
seem to make sense.I think you should try this name:
SafeContainer