diff --git a/src/unix/threadpsx.cpp b/src/unix/threadpsx.cpp index 2274d96da2..a133ba9fa0 100644 --- a/src/unix/threadpsx.cpp +++ b/src/unix/threadpsx.cpp @@ -70,7 +70,8 @@ #ifdef __WXMAC__ // implement wxCriticalSection using mutexes -wxCriticalSection::wxCriticalSection() { } +wxCriticalSection::wxCriticalSection( wxCriticalSectionType critSecType ) + : m_mutex( critSecType == wxCRITSEC_DEFAULT ? wxMUTEX_RECURSIVE : wxMUTEX_DEFAULT ) { } wxCriticalSection::~wxCriticalSection() { } void wxCriticalSection::Enter() { (void)m_mutex.Lock(); }