- File:
-
- 1 edited
-
tests/concurrent/waitfor/barge.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrent/waitfor/barge.c
r200fcb3 r73abe95 48 48 yield(random( 10 )); 49 49 if( this.state != WAITFOR && !this.done && this.started ) { 50 serr | "Barging before caller detected" ;50 serr | "Barging before caller detected" | endl; 51 51 } 52 52 … … 66 66 this.state = WAITFOR; 67 67 waitfor(do_call, this) { 68 sout | i ;68 sout | i | endl; 69 69 } 70 70 71 71 if( this.state != CALL ) { 72 serr | "Barging after caller detected" ;72 serr | "Barging after caller detected" | endl; 73 73 } 74 74 } … … 83 83 84 84 int main() { 85 sout | "Starting" ;85 sout | "Starting" | endl; 86 86 { 87 87 barger_t bargers[17]; … … 89 89 waiter_t waiters; 90 90 } 91 sout | "Stopping" ;91 sout | "Stopping" | endl; 92 92 }
Note:
See TracChangeset
for help on using the changeset viewer.