C# Class Universe.ScriptEngine.VirtualScript.MaintenanceThread

Mostra file Open project: Virtual-Universe/Virtual-Universe

Public Properties

Property Type Description
CmdHandlerQueueIsRunning long
EventProcessorIsRunning bool
MaxScriptThreads int
RunInMainProcessingThread bool
ScriptChangeIsRunning bool
cmdThreadpool Universe.Framework.Utilities.UniverseThreadPool
m_Started bool
scriptChangeThreadpool Universe.Framework.Utilities.UniverseThreadPool
scriptThreadpool Universe.Framework.Utilities.UniverseThreadPool

Public Methods

Method Description
AddEventSchQIS ( QueueItemStruct QIS, EventPriority priority ) : bool
AddEventSchQueue ( ScriptData ID, string FunctionName, DetectParams qParams, EventPriority priority ) : void
AddScriptChange ( LUStruct items, LoadPriority priority ) : void
CmdHandlerQueue ( ) : void
DisableThreads ( ) : void
EventSchExec ( QueueItemStruct QIS ) : void
EventSchProcessQIS ( QueueItemStruct &QIS ) : bool
MaintenanceThread ( ScriptEngine Engine ) : System
PokeThreads ( UUID itemID ) : void

Makes sure that all the threads that need to be running are running and starts them if they need to be running

RemoveFromEventSchQueue ( ScriptData ID, bool abortcur ) : void
RemoveState ( ScriptData ID ) : void
ScriptChangeQueue ( ) : void

This loop deals with starting and stopping scripts

SetEventSchSetIgnoreNew ( ScriptData ID, bool yes ) : void
StartScripts ( LUStruct items ) : void
Stats ( ) : void
Stop ( ) : void
eventLoop ( ) : void

Private Methods

Method Description
DateTimeComparer ( long a, long b ) : int
StartThread ( string thread ) : void

Queue the event loop given by thread

Method Details

AddEventSchQIS() public method

public AddEventSchQIS ( QueueItemStruct QIS, EventPriority priority ) : bool
QIS QueueItemStruct
priority EventPriority
return bool

AddEventSchQueue() public method

public AddEventSchQueue ( ScriptData ID, string FunctionName, DetectParams qParams, EventPriority priority ) : void
ID ScriptData
FunctionName string
qParams DetectParams
priority EventPriority
return void

AddScriptChange() public method

public AddScriptChange ( LUStruct items, LoadPriority priority ) : void
items LUStruct
priority LoadPriority
return void

CmdHandlerQueue() public method

public CmdHandlerQueue ( ) : void
return void

DisableThreads() public method

public DisableThreads ( ) : void
return void

EventSchExec() public method

public EventSchExec ( QueueItemStruct QIS ) : void
QIS QueueItemStruct
return void

EventSchProcessQIS() public method

public EventSchProcessQIS ( QueueItemStruct &QIS ) : bool
QIS QueueItemStruct
return bool

MaintenanceThread() public method

public MaintenanceThread ( ScriptEngine Engine ) : System
Engine ScriptEngine
return System

PokeThreads() public method

Makes sure that all the threads that need to be running are running and starts them if they need to be running
public PokeThreads ( UUID itemID ) : void
itemID UUID
return void

RemoveFromEventSchQueue() public method

public RemoveFromEventSchQueue ( ScriptData ID, bool abortcur ) : void
ID ScriptData
abortcur bool
return void

RemoveState() public method

public RemoveState ( ScriptData ID ) : void
ID ScriptData
return void

ScriptChangeQueue() public method

This loop deals with starting and stopping scripts
public ScriptChangeQueue ( ) : void
return void

SetEventSchSetIgnoreNew() public method

public SetEventSchSetIgnoreNew ( ScriptData ID, bool yes ) : void
ID ScriptData
yes bool
return void

StartScripts() public method

public StartScripts ( LUStruct items ) : void
items LUStruct
return void

Stats() public method

public Stats ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

eventLoop() public method

public eventLoop ( ) : void
return void

Property Details

CmdHandlerQueueIsRunning public_oe property

public long CmdHandlerQueueIsRunning
return long

EventProcessorIsRunning public_oe property

public bool EventProcessorIsRunning
return bool

MaxScriptThreads public_oe property

public int MaxScriptThreads
return int

RunInMainProcessingThread public_oe property

public bool RunInMainProcessingThread
return bool

ScriptChangeIsRunning public_oe property

public bool ScriptChangeIsRunning
return bool

cmdThreadpool public_oe property

public UniverseThreadPool,Universe.Framework.Utilities cmdThreadpool
return Universe.Framework.Utilities.UniverseThreadPool

m_Started public_oe property

public bool m_Started
return bool

scriptChangeThreadpool public_oe property

public UniverseThreadPool,Universe.Framework.Utilities scriptChangeThreadpool
return Universe.Framework.Utilities.UniverseThreadPool

scriptThreadpool public_oe property

public UniverseThreadPool,Universe.Framework.Utilities scriptThreadpool
return Universe.Framework.Utilities.UniverseThreadPool