Something went wrong. Try again.
Cider Isn't Darwin Emulation, Really
Something went wrong. Try again.
12345678910111213141516171819202122232425262728#include "CGLContextImpl.h"
CGLContextImpl::CGLContextImpl(){ pthread_mutexattr_t mta;
pthread_mutexattr_init(&mta); pthread_mutexattr_settype(&mta, PTHREAD_MUTEX_RECURSIVE);
pthread_mutex_init(&m_lock, &mta);}
CGLContextImpl::~CGLContextImpl(){ pthread_mutex_destroy(&m_lock);}
void CGLContextImpl::lock(){ pthread_mutex_lock(&m_lock);}
void CGLContextImpl::unlock(){ pthread_mutex_unlock(&m_lock);}