12 pthread_mutex_t m_lock;
15 SpinLock () { pthread_mutex_init(&m_lock, 0); }
16 ~
SpinLock () { pthread_mutex_destroy(&m_lock); }
37 inline void Eegeo::SpinLock::Lock()
39 pthread_mutex_lock(&m_lock);
42 inline void Eegeo::SpinLock::Unlock()
44 pthread_mutex_unlock(&m_lock);