direct ie non mutex crit-section implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -209,7 +209,7 @@ private:
|
||||
|
||||
// in order to avoid any overhead under platforms where critical sections are
|
||||
// just mutexes make all wxCriticalSection class functions inline
|
||||
#if !defined(__WXMSW__)
|
||||
#if !defined(__WXMSW__) && !defined(__WXMAC__)
|
||||
#define wxCRITSECT_IS_MUTEX 1
|
||||
|
||||
#define wxCRITSECT_INLINE inline
|
||||
@@ -261,6 +261,8 @@ private:
|
||||
|
||||
wxCritSectBuffer m_buffer;
|
||||
};
|
||||
#elif defined(__WXMAC__)
|
||||
void *m_critRegion ;
|
||||
#endif // Unix&OS2/Win32
|
||||
|
||||
DECLARE_NO_COPY_CLASS(wxCriticalSection)
|
||||
|
Reference in New Issue
Block a user