SETMWID(3PVM)

πŸ“¦ version 3.4.6, in debian bookworm, ubuntu jammy

πŸ’– 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 the bufid argument. She said what she said. πŸ™ˆ
  • PvmNoSuchBuf β€” the message buffer bufid doesn'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