Code: Select all
void sendThem(chanend s1, chanend s2, chanend s3)
{
char item = 0;
while(1)
{
s1 <: (char) (item++);
s2 <: (char) (item++);
s3 <: (char) (item++);
if (item > 25)
break;
}
}
PS:
If i use item = item + 1; it works fine.
Or if i use % operator like this --> s1 <: (char)(item++%5); it works.
Optimization level is 0 in all the cases.