Files @ 9b5ea2f879a4
Branch filter:

Location: CSY/reowolf/testdata/parser/positive/11.pdl

mh
Implement MPSC queue

Multiple producer, single consumer queue with the purpose of acting
as the inbox for components.
#version 100

primitive main(in a, out b) {
	msg x = null;
	while (x == null) {
		sync {
			if (fires(a))
				x = get(a);
		}
	}
	while (true) {
		sync {
			if (fires(b))
				put(b, x);
		}
	}
}