* Added source file info in utils/serialize/*
* Added Windows support in dynlib.cpp (not tested) * Added some operator in wxStream * Added a mutex in thread sample (more later) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -35,6 +35,8 @@ class MyApp: public wxApp
|
||||
bool OnInit(void);
|
||||
};
|
||||
|
||||
wxMutex text_mutex;
|
||||
|
||||
WX_DEFINE_ARRAY(wxThread *,wxArrayThread);
|
||||
|
||||
// Define a new frame type
|
||||
@@ -83,7 +85,9 @@ void *MyThread::Entry()
|
||||
|
||||
while (1) {
|
||||
TestDestroy();
|
||||
text_mutex.Lock();
|
||||
m_frame->m_txtctrl->WriteText(text);
|
||||
text_mutex.UnLock();
|
||||
wxSleep(1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user