Files @ 64ef56fc060f
Branch filter:

Location: CSY/reowolf/testdata/parser/negative/8.pdl

MH
WIP: Work on MPSC queue, pending bugfixes

Works in single threaded fashion, some issues in multithreaded
stresstest require fixing.
#version 100

import std.reo;

composite main(in a, out b) {
	channel c -> d;
	syncdrain(a, b);
}

// shadowing import
primitive syncdrain(in a, in b) {
	while (true) {
		sync {
			if (!fires(a) || !fires(b)) {
				block(a);
				block(b);
			}
		}
	}
}