void Event::reset() { GlobalLock eventLock; eventLock.initialize(EVENT_ID); eventLock.lock(); bool firstCreated = memManager->initialize(EVENT_ID, EVENT_SIZE); memManager->reset(); evManager = (EventManager *)memManager->allocate(sizeof(EventManager)); evManager->initialize(); // evManager = EventManager::getEventManager(); eventLock.unlock(); eventLock.dispose(); }
const IMATH_NAMESPACE::M44f& DeepTransform::imatrix() { if (!m_updated) { g_lock.lock(); if (!m_updated) { m_imatrix = m_matrix.inverse(); m_updated = true; } g_lock.unlock(); } return m_imatrix; }