OpenSimMirror/OpenSim
Justin Clark-Casey (justincc) 0963ece25b Implement co-operative script termination if termination comes during a script wait event (llSleep(), etc.)
This makes use of EventWaitHandles since various web references indicate that Thread.Interrupt() can also cause runtime instability.
If co-op termination is enabled, then termination sets the wait handle instead of waiting for a timeout before possibly aborting the thread.
This allows the script to cleanly terminate if it's in a llSleep/LL function delay or the next time it enters such a wait without any timeout period.
Co-op termination is not yet testable since checking for termination request within loops that never trigger a wait is not yet implemented.
This commit, unlike 1b5c41c, passes the wait handle as an extra parameter through IScript.Initialize() instead of passing IScriptInstance itself.
2013-01-16 02:07:43 +00:00
..
ApplicationPlugins Remove unnecessary ability to directly set InventoryItemBase.CreatorIdAsUuid 2012-11-17 01:23:29 +00:00
Capabilities minor: change method doc on GetTextureHandler.TryParseRange(), mainly to trigger another build 2012-12-06 01:36:30 +00:00
ConsoleClient A few more AssemblyInfos in a few more dlls. 2012-11-14 08:10:15 -08:00
Data Added locking in NullRegionData. 2013-01-02 22:48:25 +00:00
Framework Add Json-Rpc 2.0 To Registered Handlers 2013-01-15 10:04:16 -05:00
Region Implement co-operative script termination if termination comes during a script wait event (llSleep(), etc.) 2013-01-16 02:07:43 +00:00
Server Print full stacktrace from plugin loading failure to help determine what went wrong, rather than a possibly unhelpful simple exception message. 2013-01-15 01:07:20 +00:00
Services Allow registering regions whose names are equivalent under LIKE but not truly equal 2013-01-02 23:31:19 +00:00
Tests Consistenly make NUnit test cases inherit from OpenSimTestCase which automatically turns off any logging enabled between tests 2012-11-24 03:15:24 +00:00
Tools The last few AssemblyInfos. Finished! 2012-11-14 21:18:18 -08:00