build fix for wxUSE_THREADS==0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76309 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
f2e5faeb0a
commit
c1d1a5ad5e
@ -64,10 +64,10 @@ private:
|
||||
|
||||
// This class can be used from multiple threads, i.e. its WakeUp() can be
|
||||
// called concurrently.
|
||||
#if wxUSE_THREADS
|
||||
|
||||
class wxWakeUpPipeMT : public wxWakeUpPipe
|
||||
{
|
||||
#if wxUSE_THREADS
|
||||
public:
|
||||
wxWakeUpPipeMT() { }
|
||||
|
||||
@ -90,12 +90,8 @@ public:
|
||||
private:
|
||||
// Protects access to m_pipeIsEmpty.
|
||||
wxCriticalSection m_pipeLock;
|
||||
|
||||
#endif // wxUSE_THREADS
|
||||
};
|
||||
|
||||
#else // !wxUSE_THREADS
|
||||
|
||||
typedef wxWakeUpPipe wxWakeUpPipeMT;
|
||||
|
||||
#endif // wxUSE_THREADS/!wxUSE_THREADS
|
||||
|
||||
#endif // _WX_UNIX_PRIVATE_WAKEUPPIPE_H_
|
||||
|
@ -201,7 +201,11 @@ int wxConsoleEventLoop::DispatchTimeout(unsigned long timeout)
|
||||
|
||||
void wxConsoleEventLoop::WakeUp()
|
||||
{
|
||||
#if wxUSE_THREADS
|
||||
m_wakeupPipe->WakeUp();
|
||||
#else
|
||||
m_wakeupPipe->WakeUpNoLock();
|
||||
#endif
|
||||
}
|
||||
|
||||
void wxConsoleEventLoop::OnNextIteration()
|
||||
|
Loading…
Reference in New Issue
Block a user