ProducerConsumer send released

For an overview of the ProducerConsumer please see: ProducerConsumer: overview.

Overview

The function of the send released method in the ProducerConsumer is to send a released message from a producer to a consumer and consists of the following operations:
  • Map the producer's element and link number to the consumer's element and link number
  • Send the released message to the consumer

Processing sequence

The sending of a released message the ProducerConsumer task is depicted in the following sequence diagram:

mtf-core-prodcons-sendreleased.png

The send released consists of the following steps:
  • Convert the specified link number from absolute to relative
  • Call MapProducerToConsumer() to use the IConnectionMapping class for the active connection to map the producer element and link number to the consumer element and link number
  • Create the ReleasedMsg message object containing the consumer element and link numbers and the ID of the producer slot that the released event originated from
  • Call TaskManager.QueueMessage() to send the released message to the consumer

Last edited Sep 29, 2012 at 3:26 PM by jaorme, version 2

Comments

No comments yet.