Changes in src/Concurrency/Waitfor.cc [ac2b598:e15853c]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Concurrency/Waitfor.cc
rac2b598 re15853c 11 11 // Last Modified By : 12 12 // Last Modified On : 13 // Update Count : 1213 // Update Count : 7 14 14 // 15 15 … … 23 23 #include "Common/PassVisitor.h" // for PassVisitor 24 24 #include "Common/SemanticError.h" // for SemanticError 25 #include "Common/UniqueName.h" // for UniqueName26 25 #include "Common/utility.h" // for deleteAll, map_range 27 26 #include "CodeGen/OperatorTable.h" // for isConstructor 28 27 #include "InitTweak/InitTweak.h" // for getPointerBase 28 #include "Parser/LinkageSpec.h" // for Cforall 29 29 #include "ResolvExpr/Resolver.h" // for findVoidExpression 30 #include "SynTree/LinkageSpec.h" // for Cforall31 30 #include "SynTree/Constant.h" // for Constant 32 31 #include "SynTree/Declaration.h" // for StructDecl, FunctionDecl, ObjectDecl … … 42 41 void foo() { 43 42 while( true ) { 44 when( a < 1 ) waitfor( f :a ) { bar(); }43 when( a < 1 ) waitfor( f, a ) { bar(); } 45 44 or timeout( swagl() ); 46 or waitfor( g :a ) { baz(); }47 or waitfor( ^?{} :a ) { break; }45 or waitfor( g, a ) { baz(); } 46 or waitfor( ^?{}, a ) { break; } 48 47 or waitfor( ^?{} ) { break; } 49 48 } … … 244 243 decl_mask = decl; 245 244 } 246 else if( decl->name == " $monitor" ) {245 else if( decl->name == "monitor_desc" ) { 247 246 assert( !decl_monitor ); 248 247 decl_monitor = decl;
Note:
See TracChangeset
for help on using the changeset viewer.