Changes in tests/coroutine/prodcons.c [ae4af81:73abe95]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/coroutine/prodcons.c
rae4af81 r73abe95 10 10 // Created On : Mon Sep 18 12:23:39 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Aug 18 12:55:10201813 // Update Count : 5112 // Last Modified On : Tue Jan 2 12:17:01 2018 13 // Update Count : 47 14 14 // 15 15 16 16 #include <fstream.hfa> 17 17 #include <coroutine.hfa> 18 #include <stdlib.hfa> // random18 #include <stdlib.hfa> // random 19 19 #include <unistd.h> // getpid 20 20 … … 29 29 void main( Prod & prod ) with( prod ) { // starter ::main 30 30 // 1st resume starts here 31 for ( i ; N ) { // N pairs of values31 for ( int i = 0; i < N; i += 1 ) { 32 32 int p1 = random( 100 ); 33 33 int p2 = random( 100 );
Note: See TracChangeset
for help on using the changeset viewer.