view paper/src/ParGoto.cbc @ 107:84359208ad70

update
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Sat, 06 Feb 2021 13:47:49 +0900
parents
children
line wrap: on
line source

Phils* phils0 = createPhilsImpl(context,0,fork0,fork1);
Phils* phils1 = createPhilsImpl(context,1,fork1,fork2);
Phils* phils2 = createPhilsImpl(context,2,fork2,fork3);
Phils* phils3 = createPhilsImpl(context,3,fork3,fork4);
Phils* phils4 = createPhilsImpl(context,4,fork4,fork0);

par goto phils0->thinking(exit_code);
par goto phils1->thinking(exit_code);
par goto phils2->thinking(exit_code);
par goto phils3->thinking(exit_code);
par goto phils4->thinking(exit_code);

goto code2();