mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
* Unregister Mono.Addins event handlers in PluginLoader.Dispose() and always handle PluginLoader with the using pattern. This freed up 121,634,796 bytes on my system
* Avoid allocating an Action<IClientAPI> object every round of the OutgoingPacketHandler * Removed unnecessary semi-colon endings from OpenSim.ini.example [InterestManagement] section
This commit is contained in:
@@ -1223,10 +1223,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
if (!m_backingup)
|
||||
{
|
||||
m_backingup = true;
|
||||
|
||||
System.ComponentModel.BackgroundWorker backupWorker = new System.ComponentModel.BackgroundWorker();
|
||||
backupWorker.DoWork += delegate(object sender, System.ComponentModel.DoWorkEventArgs e) { Backup(); };
|
||||
backupWorker.RunWorkerAsync();
|
||||
Util.FireAndForget(BackupWaitCallback);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1238,6 +1235,14 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
m_eventManager.TriggerOnFrame();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Wrapper for Backup() that can be called with Util.FireAndForget()
|
||||
/// </summary>
|
||||
private void BackupWaitCallback(object o)
|
||||
{
|
||||
Backup();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Backup the scene. This acts as the main method of the backup thread.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user