Safety and Performance – Threadsafe Datastructures in C++