Changeset 50be8af for tests/concurrency/actors/dynamic.cfa
- Timestamp:
- Sep 17, 2023, 11:19:08 AM (14 months ago)
- Branches:
- master
- Children:
- 7edf912
- Parents:
- 697c957
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrency/actors/dynamic.cfa
r697c957 r50be8af 36 36 case 2: 37 37 if ( strcmp( argv[1], "d" ) != 0 ) { // default ? 38 Times = ato i( argv[1] );39 if ( Times < 1 ) goto Usage;38 Times = ato( argv[1] ); 39 if ( Times < 1 ) fallthru default; 40 40 } // if 41 41 case 1: // use defaults 42 42 break; 43 43 default: 44 Usage: 45 sout | "Usage: " | argv[0] | " [ times (> 0) ]"; 46 exit( EXIT_FAILURE ); 44 exit | "Usage: " | argv[0] | " [ times (> 0) ]"; 47 45 } // switch 48 46 49 printf("starting\n");47 sout | "starting"; 50 48 51 49 executor e{ 0, 1, 1, false }; 52 50 start_actor_system( e ); 53 51 54 printf("started\n");52 sout | "started"; 55 53 56 54 derived_msg * d_msg = alloc(); … … 60 58 *d_actor | *d_msg; 61 59 62 printf("stopping\n");60 sout | "stopping"; 63 61 64 62 stop_actor_system(); 65 63 66 printf("stopped\n");64 sout | "stopped"; 67 65 68 66 return 0;
Note: See TracChangeset
for help on using the changeset viewer.