While using channels, the user can request different communication modes:
-
a regular mode -- TCE_CHN_REG, which buffers a message on the receiving side, when no thread waits for it.
-
a synchronous mode -- TCE_CHN_SYNC, which postpones a send, until a matching receive has be posted. This guarantees that the message will not have to be buffed at the receiver's side.
-
a force mode -- TCE_CHN_FORCE, which discards the received message when nobody waits for it. The send operation proceeds without any delay.
|