vs2017 debug seems to get very confused with our script class called Timer (run runprebuild)

This commit is contained in:
UbitUmarov
2021-03-11 23:54:34 +00:00
parent 8712c7100e
commit 60868fe975
6 changed files with 51 additions and 262 deletions

View File

@@ -783,24 +783,25 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
/// Process the next event queued for this script
/// </summary>
/// <returns></returns>
public object EventProcessor()
public void EventProcessor()
{
// We check here as the thread stopping this instance from running may itself hold the m_Script lock.
if (!Running)
return 0;
return;
lock (m_Script)
{
// m_log.DebugFormat("[XEngine]: EventProcessor() invoked for {0}.{1}", PrimName, ScriptName);
if (Suspended)
return 0;
return;
ExecutionTimer.Restart();
try
{
return EventProcessorInt();
EventProcessorInt();
return;
}
finally
{
@@ -811,7 +812,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
}
}
private object EventProcessorInt()
private void EventProcessorInt()
{
EventParams data = null;
@@ -829,7 +830,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
{
m_CurrentWorkItem = null;
}
return 0;
return;
}
if (data.EventName == "timer")
@@ -1052,8 +1053,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
}
m_DetectParams = null;
return 0;
}
public int EventTime()