Waitany

From Mesham
Revision as of 11:16, 19 October 2016 by Polas (talk | contribs) (Created page with '== Overview == This waitany() function will block and wait for a notification from any process. The id of that process is returned. * '''Pass:''' Nothing * '''Returns:''' The i…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Overview

This waitany() function will block and wait for a notification from any process. The id of that process is returned.

  • Pass: Nothing
  • Returns: The id of the process that notified this process.

Example

#include <parallel>

function void main() {
   proc 1 {
      notify(1);
   };

  proc 0 {
      var p:=waitany();
   };
};

Since: Version 1.00