aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueManager.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2008-04-21* Optimised using statements and namespace references across entire project ↵Adam Frisby1-3/+0
(this took a while to run).
2008-04-20Removed some script engine noise from consoleTedd Hansen1-1/+1
2008-03-18Formatting cleanup.Jeff Ames1-27/+25
2008-03-03* Removed a bunch of compiler warnings.Adam Frisby1-1/+1
2008-02-22Bugfixes - Scripting works againTedd Hansen1-0/+1
2008-02-22Bugfixes - wasn't counting threads right++Tedd Hansen1-3/+2
2008-02-22Execution threads are now shared between regions too. Default thread count ↵Tedd Hansen1-46/+18
regardless of number of regions is now 3. This will save you around 33 threads for a normal 3x3 region server. But, this is totally completely untested. So it probably won't work for another patch or five.
2008-02-22From this commit and a few hours into the future ScriptEngine will be unstable:Tedd Hansen1-9/+9
* Speeding up ScriptEngine shutdown * Sharing threads so that minimum total thread count for any amount of regions will be 2. (1 maintenance, 1 script execution) You can choose more script exec threads if you want of course. In this commit: Sharing maintenance thread between all regions.
2008-02-21Fixes to ScriptEngine thread cleanup on destructorTedd Hansen1-9/+9
2008-02-21ScriptEngine changes in locking. Another step in direction of shared threads.Tedd Hansen1-17/+15
2008-02-20Minor cleanup.Jeff Ames1-1/+1
2008-02-05Converted logging to use log4net.Jeff Ames1-13/+10
Changed LogBase to ConsoleBase, which handles console I/O. This is mostly an in-place conversion, so lots of refactoring can still be done.
2008-02-03Temporarily disabled shared threads because of a bug. Script were only ↵Tedd Hansen1-1/+2
working on 1 region. :) Using default warning level on C#/VB compile
2008-02-02Added load/unload queue size limitTedd Hansen1-0/+10
Added option to share script load/unload thread between regions Added event execution queue size limit + some bugfixes from all the changes
2008-02-02Added OpenSim.32BitLaunch.exe that can be used on 64-bit systems to run ↵Tedd Hansen1-16/+20
OpenSim in 32-bit mode. Fixed ScriptEngine.Common startup problems.
2008-02-02Forgot to create an object before use. Now why can't .Net just do that ↵Tedd Hansen1-7/+10
itself? :)
2008-02-01SCRIPTING STILL BROKENTedd Hansen1-9/+33
Added comments and regions, restructured code Changed a lot of AppDomain junk from console from using Console.Write to Log.Verbose and set it to #if DEBUG All modules should now refresh their configuration runtime Made all logging in ScriptEngine.Common get script name from actual engine Renamed LSLLongCmdHandler to AsyncLSLCommandManager Added auto-recover with 5 sec throttle for new MaintenanceThread
2008-02-01SCRIPT SUPPORT IS STILL BROKEN.Tedd Hansen1-96/+146
Bugfix: Scripts exceeding max and set to be killed were not killed, only removed. Added ability to re-read configuration while OpenSim is running All regions now sharing one MaintenanceThread New MaintenanceThread: - checks for script execution timeout - re-reads config - starts/stops threads if thread active count becomes too high/low compared to config Speed increase on event execution: - Reuse of try{}catch{} blocks - Time calculation on event execution
2008-02-01Added config options:Tedd Hansen1-1/+4
ScriptThreadPriority to set script thread priority DeactivateScriptOnTimeout to remove script if it is executing too long
2008-02-01Removed "Loading inventory for Primitive" message.Tedd Hansen1-1/+1
Fixed small bug in thread counter.
2008-02-01ExperimentalTedd Hansen1-7/+45
Moved DotNetScriptEngine configuration to config file. Added option to share script execution threads between regions.
2008-02-01Highly experimentalTedd Hansen1-149/+99
A separate thread is used to enforce max function (event) execution time for scripts.
2008-01-19* Potential fix to the 'can't run a script anymore bug'Teravus Ovares1-6/+7
2008-01-17Added data structure to be passed through event execution queue so that ↵Tedd Hansen1-7/+29
events can use llDetect*-commands to find information about event.
2008-01-15* Mother of all commits:Adam Frisby1-1/+1
* Cleaned up copyright notices in AssemblyInfo.cs's * Added Copyright headers to a bunch of files missing them * Replaced several common string instances with a static constant to prevent reallocation of the same strings thousands of times. "" -> String.Empty is the first such candidate.
2008-01-12Set eolTedd Hansen1-363/+363
2008-01-12Added license to new filesTedd Hansen1-2/+3
2008-01-12Major reorganizing of DotNetEngine. Moved common script engine parts to ↵Tedd Hansen1-363/+362
ScriptEngine.Common, only .Net-specific code in DotNetEngine. AppDomains, event handling, event execution queue and multithreading, script load/unload queue, etc has been moved to ScriptEngine.Common. Loads of things has been put into interfaces instead of the specific class. We are now one step closer to ScriptServer, and its very easy to implement new script languages. Just a few lines required to make them a OpenSim script module with all its glory.
2008-01-12ScriptServer communication is ok. Script is creatd on onrez. But since it ↵Tedd Hansen1-2/+2
can not access Scene it sort of crashes right away ;) Added some sample placeholders for implementing rest of LSL events.
2007-12-30Added comments to ScriptEngine classes that explains what their purpose isTedd Hansen1-0/+22
2007-12-27* Optimized usingslbsa711-10/+11
* shortened references * Removed redundant 'this' * Normalized EOF
2007-12-10saved OpenSim source code from the giant rampaging unterminated copyright ↵Jeff Ames1-2/+2
notice of doom
2007-11-08converted hard-coded chat type values to ChatTypeEnumJeff Ames1-1/+2
2007-11-01ScriptServer fixes: Added more debug logging, mutex lock (to be ↵Tedd Hansen1-8/+15
extra-super-sure) on script load/unload, removed experimental Grid-scriptengine from compile because of dynamic module loader, and added random string to script filename to bypass module loader file lock. Please delete your copy of bin/ScriptEngine/OpenSim.Grid.ScriptEngine.DotNetEngine.dll.
2007-10-30* Optimized usingslbsa711-26/+38
* Shortened type references * Removed redundant 'this' qualifier
2007-09-14* Wired up chat so that channel goes into OnChatFromViewer. However:lbsa711-1/+1
* There's no libsl reply packet field for it, I guess other channels than 0 makes no sense sending back to clients. * We do not currently support objects listening, so there's really no way of actually using this feature. So; somebody please wire chat all the way to the scripts.
2007-09-13remove ^M, as native storage should be UNIX format, and ^M in/out mashingSean Dague1-321/+321
will happen on the windows side now that eol-style is correct
2007-09-13Hiding evidence that I once was a VB coder (thanks to refactoring). Renamed ↵Tedd Hansen1-36/+36
member names to smallcapsy.
2007-09-10* Took a stab at #388lbsa711-1/+4
2007-09-10mass update of urls in source code to new websiteSean Dague1-1/+1
2007-09-08Cut down on the number of compile warnings. Now down to 5: 4 are related to ↵MW1-2/+2
unused events on IClientAPI and 1 is a unused variable in LSL_BuiltIn_Commands (which I'll leave to Tedd, as he will know if it will be used in the future or not).
2007-08-26in-world run-time error-message no-w con-tains function-name.Tedd Hansen1-1/+1
2007-08-26Run-time script errors are now shown in-world. No line number though, might ↵Tedd Hansen1-0/+29
require script to be compiled with (slow) debug information.
2007-08-26Bugfix for last commit, { instead of (Tedd Hansen1-1/+1
2007-08-26Fixed bug that occurs sometimes on script unload where queued script event ↵Tedd Hansen1-40/+47
was attempted executed after AppDomain was unloaded.
2007-08-25Fixed error on shutdown caused by ThreadAbortException sending message ↵Tedd Hansen1-2/+2
through already disposed logger. Thanks ckrinke
2007-08-25Added class for "long commands" (command that returns as event) with ↵Tedd Hansen1-22/+33
dedicated thread for processing. Added support for llSetTimerEvent(). Deleting old compiled scripts before new compile is attempted (avoids loading wrong script on compile error).
2007-08-25Scripts no longer crash sim after 5 minutes (override ↵Tedd Hansen1-1/+1
InitializeLifetimeService). Loading/Unloading of scripts are now handled in separate thread so server is no delayed because of this. Each script is loaded into a single AppDomain (temporary test for script unload, eats ~15KB more memory for each script). Unload of scripts has been verified to free up memory.
2007-08-23Lowered priority of script threads. Executing state_entry() event on script rez.Tedd Hansen1-0/+1
2007-08-22GC.GetTotalMemory(true) was blocking.Tedd Hansen1-0/+3
We now support individual scripts on individual prims. Do the script dance... \o/ \o\ /o/ \o/ .o.