Changes between Version 15 and Version 16 of MessagePassing
- Timestamp:
- 09/06/13 16:50:58 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MessagePassing
v15 v16 21 21 * `$comm` 22 22 * an abstract datatype representing a communicator, or set of message channels between every pair of processes in a set of processes 23 * `$comm $comm_create(int nprocs, $proc *procs)`23 * `$comm $comm_create(int nprocs, $proc[] procs)` 24 24 * creates a new comm from the given sequence of processes, by allocating memory and copying the process sequence; the new comm has no messages 25 * `void $comm_destroy($comm * comm)` 26 * destroys the comm, deallocating whatever was allocated in its creation 27 * `int $comm_nprocs($comm * comm)` 25 * `int $comm_nprocs($comm comm)` 28 26 * returns the number of processes associated to the comm 29 * `$proc * $comm_procs($comm *comm)`27 * `$proc[] $comm_procs($comm comm)` 30 28 * returns a pointer to the procs array in comm 31 * ` void $comm_enqueue($comm *comm, $message message)`29 * `$comm $comm_enqueue($comm comm, $message message)` 32 30 * adds the message to the comm 33 * `boolean $comm_probe($comm *comm, int source, int dest, int tag)`31 * `boolean $comm_probe($comm comm, int source, int dest, int tag)` 34 32 * returns true iff a matching message exists in comm 35 * `$message * $comm_seek($comm * comm, int source, int dest, int tag)` 36 * finds the first matching message and returns pointer to it without modifying comm 37 * `$message $comm_dequeue($comm * comm, int source, int dest, int tag)` 38 * finds the first matching message, removes it from comm, and returns pointer to message 39 * `int $comm_chan_size($comm * comm, int source, int dest)` 33 * `int $comm_seek($comm comm, int source, int dest, int tag)` 34 * finds the first matching message and returns its index without modifying comm 35 * `$message $comm_get($comm comm, int source, int dest, int index)` 36 * returns the message at the index without modifying the comm 37 * `$comm $comm_dequeue($comm comm, int source, int dest, int index)` 38 * removes the message at the index from the comm and returns the modified comm 39 * `int $comm_chan_size($comm comm, int source, int dest)` 40 40 * returns the number of messages from source to dest stored in comm 41 * `int $comm_total_size($comm *comm)`41 * `int $comm_total_size($comm comm)` 42 42 * returns the total number of messages in the comm 43 43 * constants defined: … … 122 122 }}} 123 123 124
