Changes between Version 18 and Version 19 of Libraries
- Timestamp:
- 05/25/23 21:52:01 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Libraries
v18 v19 84 84 * Destroys the gcomm, deallocating memory that was allocated for it. If `junkMsgs` is not NULL it shall be a pointer to an array of indeterminate length of `$message`. This function will populate that array with all messages remaining the gcomm's buffers and return the number of such messages. 85 85 * `$atomic_f void $gcomm_dup($comm comm, $comm newcomm)` 86 * Duplicates the communicator `comm`. The `newcomm` is initialized to have the same gcomm and place as the original `comm`. 86 87 * `$atomic_f $comm $comm_create($scope scope, $gcomm gcomm, int place)` 87 * 88 * Creates a new `comm` associated with the specified `place` in `gcomm`. If `place` is less than 0, or greater than the size of `gcomm`, or another process has already occupied `place` in `gcomm`, an error occurs. The new comm object is allocated in the heap of the given scope. 88 89 * `$atomic_f void $comm_destroy($comm comm)` 90 * Deallocates the comm. 89 91 * `$atomic_f int $comm_size($comm comm)` 92 * Gets the size of the gcomm that owns `comm`. 90 93 * `$atomic_f int $comm_place($comm comm)` 94 * Gets the place of the given `comm` in its gcomm object. 91 95 * `$system void $comm_enqueue($comm comm, $message message)` 96 * Enqueues a message in a FIFO channel in the gcomm. The message should have its source be the place of `comm`. The message will enqueued on channel ''(i,j)'' in the gcomm, where ''i'' is the place of the source, and ''j'' is the place of the destination of the message. 92 97 * `$system $state_f _Bool $comm_probe($comm comm, int source, int tag)` 98 * Determines whether there exists a message with the given source and tag, and with destination the place of `comm`, in the gcomm associated to `comm`. `source` may be $COMM_ANY_SOURCE` and `tag` may be `$COMM_ANY_TAG`. 93 99 * `$system $message $comm_seek($comm comm, int source, int tag)` 94 100 * `$system $message $comm_dequeue($comm comm, int source, int tag)`
