]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed locking problem
authorKarsten Ballüder <ballueder@usa.net>
Fri, 12 Mar 1999 16:09:09 +0000 (16:09 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Fri, 12 Mar 1999 16:09:09 +0000 (16:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/thread/test.cpp

index 71f34019dc02803a8fc8d5121a315f242ae28781..7d2c088b4f17f3875be3bccf1842538516cc269a 100644 (file)
@@ -139,11 +139,11 @@ MyThread::MyThread(MyFrame *frame)
 void MyThread::WriteText(const wxString& text)
 {
     wxString msg;
-    msg << wxTime().FormatTime() << ": " << text;
 
     // before doing any GUI calls we must ensure that this thread is the only
     // one doing it!
     wxMutexGuiLocker guiLocker;
+    msg << wxTime().FormatTime() << ": " << text;
 
     m_frame->WriteText(msg);
 }