Changeset b7d6a36 for src/Concurrency/Waitfor.cc
- Timestamp:
- Feb 20, 2020, 4:15:51 PM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 6a490b2
- Parents:
- dca5802 (diff), 2cbfe92 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Concurrency/Waitfor.cc
rdca5802 rb7d6a36 11 11 // Last Modified By : 12 12 // Last Modified On : 13 // Update Count : 1 013 // Update Count : 12 14 14 // 15 15 … … 27 27 #include "CodeGen/OperatorTable.h" // for isConstructor 28 28 #include "InitTweak/InitTweak.h" // for getPointerBase 29 #include "Parser/LinkageSpec.h" // for Cforall30 29 #include "ResolvExpr/Resolver.h" // for findVoidExpression 30 #include "SynTree/LinkageSpec.h" // for Cforall 31 31 #include "SynTree/Constant.h" // for Constant 32 32 #include "SynTree/Declaration.h" // for StructDecl, FunctionDecl, ObjectDecl … … 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.