namespace stm { #if defined(TLS_GCC_IMPLICIT) /** * Provide backing for the thread-local id, if we're using * TLS_GCC_IMPLICIT */ __thread unsigned long IdManager::s_tid = 0; #endif /** * IdManager.h declared the one global id manager, but we need to back it * in a cpp so that the linker can find it. */ IdManager idManager = IdManager(); }
BillboardManager::BillboardManager(glw::IOpenGlDevice* openGlDevice) : openGlDevice_(openGlDevice) { billboards_ = std::vector< std::unique_ptr<IBillboard> >(); idManager_ = IdManager(); }