1. wxLog::FlushActive() added

2. threads can be used in console mode


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-10-07 18:12:57 +00:00
parent 48115f4a69
commit bbfa03228a
4 changed files with 141 additions and 12 deletions

View File

@@ -132,6 +132,13 @@ public:
bool HasPendingMessages() const { return m_bHasMessages; }
// only one sink is active at each moment
// flush the active target if any
static void FlushActive()
{
wxLog *log = GetActiveTarget();
if ( log )
log->Flush();
}
// get current log target, will call wxApp::CreateLogTarget() to
// create one if none exists
static wxLog *GetActiveTarget();