GenericMap::GenericMap(): m_nextMarkerId(0), m_authorizeExternalThreads(false), m_manipulator(NULL) { if(m_attributes_registry_map == NULL) initAllStatics(NULL); // no need here to store the pointers s_instances->push_back(this); m_thread_ids.reserve(NB_THREADS + 1); m_thread_ids.push_back(std::this_thread::get_id()); for(unsigned int i = 0; i < NB_ORBITS; ++i) { m_attribs[i].setOrbit(i) ; m_attribs[i].setRegistry(m_attributes_registry_map) ; } for(unsigned int i = 0; i < NB_THREADS; ++i) { s_vdartsBuffers[i].reserve(8); s_vintsBuffers[i].reserve(8); // for(unsigned int j = 0; j < NB_ORBITS; ++j) // m_markVectors_free[i][j].reserve(8); } init(); }
GenericMap::GenericMap(): m_nextMarkerId(0), m_manipulator(NULL) { if(m_attributes_registry_map == NULL) initAllStatics(NULL); // no need here to store the pointers s_instances->push_back(this); m_thread_ids.reserve(NB_THREAD+1); m_thread_ids.push_back( std::this_thread::get_id() ); for(unsigned int i = 0; i < NB_ORBITS; ++i) { m_attribs[i].setOrbit(i) ; m_attribs[i].setRegistry(m_attributes_registry_map) ; } init(); }