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:
UbitUmarov
2022-09-18 05:21:07 +01:00
parent 0505fd54e4
commit 87ba2d7b43
5 changed files with 87 additions and 93 deletions

View File

@@ -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();
}
*/
}
}
}