Created separate smartpointer classes for the threadsafe one and for the
normal ones.