Difference between revisions of "Waitany"
From Mesham
Jump to navigationJump to search (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…') |
(→Example) |
||
Line 12: | Line 12: | ||
function void main() { | function void main() { | ||
proc 1 { | proc 1 { | ||
− | notify( | + | notify(0); |
}; | }; | ||
Revision as of 11:19, 19 October 2016
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(0); }; proc 0 { var p:=waitany(); }; };
Since: Version 1.00