diff options
author | Justin Clark-Casey (justincc) | 2014-11-25 23:56:32 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2014-11-25 23:56:32 +0000 |
commit | 86367d7219b3bd52f63045b2b17bcbde328844ed (patch) | |
tree | 789227d95cb152a437481e741b55d86dfeba9f74 /OpenSim/Addons/Groups/Hypergrid | |
parent | Fix ghosts copy of SimulatorFeatureModule to enable logging. (diff) | |
download | opensim-SC-86367d7219b3bd52f63045b2b17bcbde328844ed.zip opensim-SC-86367d7219b3bd52f63045b2b17bcbde328844ed.tar.gz opensim-SC-86367d7219b3bd52f63045b2b17bcbde328844ed.tar.bz2 opensim-SC-86367d7219b3bd52f63045b2b17bcbde328844ed.tar.xz |
refactor: Move methods to start a monitored thread, start work in its own thread and run work in the jobengine from Watchdog to a WorkManager class.
This is to achieve a clean separation of concerns - the watchdog is an inappropriate place for work management.
Also adds a WorkManager.RunInThreadPool() class which feeds through to Util.FireAndForget.
Also switches around the name and obj arguments to the new RunInThread() and RunJob() methods so that the callback obj comes after the callback as seen in the SDK and elsewhere
Diffstat (limited to 'OpenSim/Addons/Groups/Hypergrid')
-rw-r--r-- | OpenSim/Addons/Groups/Hypergrid/GroupsServiceHGConnectorModule.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Addons/Groups/Hypergrid/GroupsServiceHGConnectorModule.cs b/OpenSim/Addons/Groups/Hypergrid/GroupsServiceHGConnectorModule.cs index 9fbc1b3..7d57de1 100644 --- a/OpenSim/Addons/Groups/Hypergrid/GroupsServiceHGConnectorModule.cs +++ b/OpenSim/Addons/Groups/Hypergrid/GroupsServiceHGConnectorModule.cs | |||
@@ -561,7 +561,7 @@ namespace OpenSim.Groups | |||
561 | 561 | ||
562 | // so we have the list of urls to send the notice to | 562 | // so we have the list of urls to send the notice to |
563 | // this may take a long time... | 563 | // this may take a long time... |
564 | Watchdog.RunInThread(delegate | 564 | WorkManager.RunInThread(delegate |
565 | { | 565 | { |
566 | foreach (string u in urls) | 566 | foreach (string u in urls) |
567 | { | 567 | { |
@@ -572,7 +572,7 @@ namespace OpenSim.Groups | |||
572 | hasAttachment, attType, attName, attItemID, AgentUUIForOutside(attOwnerID)); | 572 | hasAttachment, attType, attName, attItemID, AgentUUIForOutside(attOwnerID)); |
573 | } | 573 | } |
574 | } | 574 | } |
575 | }, string.Format("AddGroupNotice (agent {0}, group {1})", RequestingAgentID, groupID) , null); | 575 | }, null, string.Format("AddGroupNotice (agent {0}, group {1})", RequestingAgentID, groupID)); |
576 | 576 | ||
577 | return true; | 577 | return true; |
578 | } | 578 | } |