Changes in src/Concurrency/Waitfor.cc [cca568e:07de76b]
- File:
-
- 1 edited
-
src/Concurrency/Waitfor.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Concurrency/Waitfor.cc
rcca568e r07de76b 11 11 // Last Modified By : 12 12 // Last Modified On : 13 // Update Count : 1 213 // Update Count : 11 14 14 // 15 15 … … 42 42 void foo() { 43 43 while( true ) { 44 when( a < 1 ) waitfor( f :a ) { bar(); }44 when( a < 1 ) waitfor( f, a ) { bar(); } 45 45 or timeout( swagl() ); 46 or waitfor( g :a ) { baz(); }47 or waitfor( ^?{} :a ) { break; }46 or waitfor( g, a ) { baz(); } 47 or waitfor( ^?{}, a ) { break; } 48 48 or waitfor( ^?{} ) { break; } 49 49 }
Note:
See TracChangeset
for help on using the changeset viewer.