|pMe||(Object) Reference to the PROMOTIC object where the event rises.|
|pEvent||(Object) A referrence to object describing detailed information about the specific event.|
pEvent.ReleaseType - (Integer) Cause of the item release:
0 - the item didn't wait, i.e. the timeout=0 in the Add method
1 - the item was waiting and the timeout has expired
2 - the item was waiting and the Release method has been called
pEvent.ReleaseCancel - (Boolean) Always preset to false. If set to true, the item continues to wait (only if the event occurred due to the Release method, i.e. the pEvent.ReleaseType=2).
The PmSequencer object is special because its main onStep event can be fired in both main or working thread ("thread:work;" or "thread:main;"). Therefore the methods were doubled internally and then compiled in both main and working thread. If the method is called from the working thread then it is executed in this thread. In other cases it is executed in the main theread (as other object methods are).
This allows easy creation of auxiliary functions making the onStep event itself much better arranged. Even if the onStep is called alternatively in main and working thread the method is then called in the corresponding thread.