mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
a few changes to local console; add pooling of Console.KeyAvailable instead of waiting on keyread, that has treading issues. Thanks ALicia for some ideas on this
This commit is contained in:
@@ -46,8 +46,8 @@ namespace OpenSim.Framework.Console
|
||||
|
||||
override protected void Append(LoggingEvent le)
|
||||
{
|
||||
if (m_console != null)
|
||||
m_console.LockOutput();
|
||||
//if (m_console != null)
|
||||
// m_console.LockOutput();
|
||||
|
||||
string loggingMessage = RenderLoggingEvent(le);
|
||||
|
||||
@@ -78,11 +78,13 @@ namespace OpenSim.Framework.Console
|
||||
{
|
||||
System.Console.WriteLine("Couldn't write out log message: {0}", e.ToString());
|
||||
}
|
||||
/*
|
||||
finally
|
||||
{
|
||||
if (m_console != null)
|
||||
m_console.UnlockOutput();
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user