dm_mqueue_forward Interface

public interface dm_mqueue_forward

Generic function to forward derived types via message queue.


Module Procedures

private function mqueue_forward_observ(observ, name, blocking, allow_self, verbose) result(rc)

Forwards given observation to next receiver. This function creates log messages, unless verbose is passed and .false..

If name is passed and equals the next receiver, the receiver will be skipped, unless allow_self is .true.. This behaviour prevents the observation from being forwarded back to the sender if the sender is the next receiver in the list.

Arguments

Type IntentOptional Attributes Name
type(observ_type), intent(inout) :: observ

Observation to forward.

character(len=*), intent(in), optional :: name

App name.

logical, intent(in), optional :: blocking

Blocking message queue access.

logical, intent(in), optional :: allow_self

Allow forwarding to name.

logical, intent(in), optional :: verbose

Create log messages (enabled by default).

Return Value integer