removed tab characters
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
3d2eaa5d59
commit
ce1c674598
@ -889,16 +889,16 @@ static bool memSectionOk = false;
|
|||||||
class MemoryCriticalSection : public wxCriticalSection
|
class MemoryCriticalSection : public wxCriticalSection
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MemoryCriticalSection() {
|
MemoryCriticalSection() {
|
||||||
memSectionOk = true;
|
memSectionOk = true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
class MemoryCriticalSectionLocker
|
class MemoryCriticalSectionLocker
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
inline MemoryCriticalSectionLocker(wxCriticalSection& critsect)
|
inline MemoryCriticalSectionLocker(wxCriticalSection& critsect)
|
||||||
: m_critsect(critsect), m_locked(memSectionOk) { if(m_locked) m_critsect.Enter(); }
|
: m_critsect(critsect), m_locked(memSectionOk) { if(m_locked) m_critsect.Enter(); }
|
||||||
inline ~MemoryCriticalSectionLocker() { if(m_locked) m_critsect.Leave(); }
|
inline ~MemoryCriticalSectionLocker() { if(m_locked) m_critsect.Leave(); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@ -907,7 +907,7 @@ private:
|
|||||||
MemoryCriticalSectionLocker& operator=(const MemoryCriticalSectionLocker&);
|
MemoryCriticalSectionLocker& operator=(const MemoryCriticalSectionLocker&);
|
||||||
|
|
||||||
wxCriticalSection& m_critsect;
|
wxCriticalSection& m_critsect;
|
||||||
bool m_locked;
|
bool m_locked;
|
||||||
};
|
};
|
||||||
|
|
||||||
MemoryCriticalSection &GetMemLocker()
|
MemoryCriticalSection &GetMemLocker()
|
||||||
|
Loading…
Reference in New Issue
Block a user