logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

pvm_getmwid, pvm_setmwid - Get or set wait ID of a message.

Description

       A wait identifier is part of a message (like the source, destination, tag and body).  It is used to match
       a reply to the corresponding request.

       The default wait ID for a message is zero (none).

       pvm_getmwid returns the wait ID associated with a message buffer, or a negative error code.

       pvm_setmwid assigns a new wait ID to a message buffer.  It returns PvmOk unless an error occurs.

Errors

       The following error conditions can be returned by pvm_getmwid or pvm_setmwid:

       PvmBadParam
              Invalid value for bufid argument.

       PvmNoSuchBuf
              Message buffer bufid doesn't exist.

Examples

            int src, tag;

            pvm_recv(-1, -1);
            /* ... process, compose reply message */
            pvm_setmwid(pvm_getsbuf(), pvm_getmwid(pvm_getrbuf()));
            pvm_bufinfo(pvm_getrbuf(), (int *)0, &tag, &src);
            pvm_send(src, tag);

Name

       pvm_getmwid, pvm_setmwid - Get or set wait ID of a message.
       [In Version 3.4: Relaced by pvm_getminfo and pvm_setminfo]

Parameters

       bufid   Message buffer identifier.

       waitid  Wait identifier number.

See Also

pvm_bufinfo(3PVM)

                                                  18 May, 1994                                     SETMWID(3PVM)

Synopsis

Cintinfo=pvm_getmwid(intbufid)intinfo=pvm_setmwid(intbufid,intwaitid)FortranNotAvailable

See Also