From b60a0beb6df68ae7c875ea62e3900c9cabedc370 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 17 Jan 2014 14:32:57 +0000 Subject: [PATCH] Compilation fix for the example in wxThread documentation. Make MyThread a friend to allow it accessing the private fields of MyFrame. Notice that this example still remains badly written and should be ideally entirely redone using conditions and mutexes. See #15881. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/thread.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interface/wx/thread.h b/interface/wx/thread.h index 61becf5847..3f304311b5 100644 --- a/interface/wx/thread.h +++ b/interface/wx/thread.h @@ -779,6 +779,8 @@ enum wxThreadError MyThread *m_pThread; wxCriticalSection m_pThreadCS; // protects the m_pThread pointer + friend class MyThread; // allow it to access our m_pThread + wxDECLARE_EVENT_TABLE(); };