.PVM.freebuf {rpvm} | R Documentation |
Disposes of a message buffer.
.PVM.freebuf (bufid)
bufid |
integer message buffer id |
This function frees the memory associated with the message buffer
identified by bufid
. Message buffers are created by
.PVM.mkbuf
, .PVM.initsend
and
.PVM.recv
.
.PVM.freebuf
should be called for a send buffer created
by .PVM.mkbuf
after the message has been send and is no
longer needed.
Receive buffer typically do not have to be freed unless they have been
saved in the cources of using multiple buffers. But
.PVM.freebuf
can be used to destroy receive buffers as
well. Therefore, messages that arrive but are no longer needed as a
result of some other event can be destroyed to save buffer space.
Returns 0 if successful or -1 if failed.
Na (Michael) Li nali@umn.edu and A.J. Rossini rossini@u.washington.edu
PVM documentation
.PVM.initsend
, .PVM.mkbuf
,
.PVM.setrbuf
, .PVM.recv
## Not run: bufid <- .PVM.mkbuf ("Raw") ## Send the message ... ## Not run: .PVM.freebuf (bufid)