Training
×

Example

The example shows a process running on NodeA, which looks up a mailbox of a process running on NodeB. It then sends a message to that mailbox and cleans up again. The lines marked with an arrow are specific for global objects. GetRtNodeLocationByName & GetRemoteRootRtProcess
If the same code were to run on a single node, the first two statements should be replaced by:
 hRoot = GetRtThreadHandles(ROOT_PROCESS);
The deleting calls at the end are not required when running on a single node (they are not even required for the remote case).