SETMWID(3PVM)
π NAME π
pvm_getmwid, pvm_setmwid β get or set the wait ID of a message, bestie. That's it, that's the whole job.
[In Version 3.4: Relaced by pvm_getminfo and pvm_setminfo]
β¨ SYNOPSIS β¨
C πΈ
int info = pvm_getmwid( int bufid )
int info = pvm_setmwid( int bufid, int waitid )
Fortran π β Not Available. She's not coming, sorry.
π PARAMETERS π
bufidβ the message buffer identifier. The little name-tag for your buffer, iykyk.waitidβ the wait identifier number.
π¦ DESCRIPTION π¦
Okay so a wait identifier is literally part of a message, just like the source, destination, tag and body. Its whole personality is matching a reply to the corresponding request. That's the vibe check it's here to pass. π
The default wait ID for a message is zero (none). Like, no wait ID at all. Feral. Unmatched. Living free.
pvm_getmwid returns the wait ID associated with a message buffer, or a negative error code if things go sideways. π
pvm_setmwid assigns a brand new wait ID to a message buffer, glow-up style. It returns PvmOk unless an error occurs. Periodt.
π 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);
Not her copying the wait ID from the receive buffer onto the send buffer so the reply knows who it belongs to. Main character energy fr fr. π
π ERRORS π
These are the error conditions that can be returned by pvm_getmwid or pvm_setmwid. Not cute, but we move:
PvmBadParamβ invalid value for thebufidargument. She said what she said. πPvmNoSuchBufβ the message bufferbufiddoesn't exist. It's giving ghosted. π
π SEE ALSO π
pvm_bufinfo(3PVM)
Okay that's the whole page, you ate that π«Ά This one's from PVM Version 3.4, dated 18 May, 1994 β yes bestie, she's vintage, she's an icon, she's lowkey historical. πβ¨
π¦ where this page comes from
- debian bookworm: pvm-dev 3.4.6-5
- ubuntu jammy: pvm-dev 3.4.6-3.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms