Public Member Functions | Protected Member Functions

VIAgents.SynchronizationManager Class Reference

This class is used to ensure that SL bot commands are performed in asynchronized manner. More...

List of all members.

Public Member Functions

delegate void CommandBody ()
 Pass the function that is used to perform the command.
delegate bool CompletionValidation ()
 SynchronizationManager (CommandBody inBody, CompletionValidation inValidation, int inTimeout)

Protected Member Functions

void runValidation ()
 Used in a thread to perform the validation.

Detailed Description

This class is used to ensure that SL bot commands are performed in asynchronized manner.


Constructor & Destructor Documentation

VIAgents.SynchronizationManager.SynchronizationManager ( CommandBody  inBody,
CompletionValidation  inValidation,
int  inTimeout 
)

Calling the manager will block the main thread of the caller until the validation returns true or the timeout elapses. Call this constructor only if the event is only triggered from inside the validation method


Member Function Documentation

delegate void VIAgents.SynchronizationManager.CommandBody (  ) 

Pass the function that is used to perform the command.

delegate bool VIAgents.SynchronizationManager.CompletionValidation (  ) 

Pass the function that is used to validate if the command is finished (successfully or not). The value of inDelay (Msec) determines when to interrupt the execution of CommandBody.

void VIAgents.SynchronizationManager.runValidation (  )  [protected]

Used in a thread to perform the validation.


The documentation for this class was generated from the following file: