Component which generates a MIPSYSTEMMESSAGE_TYPE_ISTIME system message when data has been supplied to it from another chain. More...
|bool||init (int count=1, MIPTime safetyTimeout=MIPTime(0.5))|
|Initializes the component. |
|De-initializes the component. |
|MIPComponent *||getTriggerComponent ()|
|Returns a pointer to the internal 'trigger component'. |
This component generates a MIPSYSTEMMESSAGE_TYPE_ISTIME system message when a component from another thread has delivered data to its 'trigger component'. The trigger component accepts any incoming message; the main component only accepts a MIPSYSTEMMESSAGE_TYPE_WAITTIME message.
Returns a pointer to the internal 'trigger component'. Note that the init function has to be called to create such a component.
To initialize the component, this function must be called first. When the initialization was succesfull, an internal 'trigger component' is created, which can accept messages from another thread. When this happens, a signal is sent to the main component, causing it to generate a MIPSYSTEMMESSAGE_TYPE_ISTIME message.
|count||Instead of sending a signal to the main component on each incoming message, it is also possible to skip a number of messages each time. If this parameter is 1 or less, each message will cause a signal to be sent. If the value is 2 for example, every other message will cause a signal to be sent.|
|safetyTimeout||Because this component will be waiting for signals from another chain, problems would arise if that chain crashed for example. To avoid this, a background thread is started which checks if a signal has been sent in the time interval specified by |