This class is used to ensure that SL bot commands are performed in asynchronized manner. More...
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. |
This class is used to ensure that SL bot commands are performed in asynchronized manner.
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
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.