Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Concurrency/Waitfor.cc

    rac2b598 re15853c  
    1111// Last Modified By :
    1212// Last Modified On :
    13 // Update Count     : 12
     13// Update Count     : 7
    1414//
    1515
     
    2323#include "Common/PassVisitor.h"    // for PassVisitor
    2424#include "Common/SemanticError.h"  // for SemanticError
    25 #include "Common/UniqueName.h"     // for UniqueName
    2625#include "Common/utility.h"        // for deleteAll, map_range
    2726#include "CodeGen/OperatorTable.h" // for isConstructor
    2827#include "InitTweak/InitTweak.h"   // for getPointerBase
     28#include "Parser/LinkageSpec.h"    // for Cforall
    2929#include "ResolvExpr/Resolver.h"   // for findVoidExpression
    30 #include "SynTree/LinkageSpec.h"   // for Cforall
    3130#include "SynTree/Constant.h"      // for Constant
    3231#include "SynTree/Declaration.h"   // for StructDecl, FunctionDecl, ObjectDecl
     
    4241void foo() {
    4342        while( true ) {
    44                 when( a < 1 ) waitfor( f : a ) { bar(); }
     43                when( a < 1 ) waitfor( f, a ) { bar(); }
    4544                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; }
    4847                or waitfor( ^?{} ) { break; }
    4948        }
     
    244243                        decl_mask = decl;
    245244                }
    246                 else if( decl->name == "$monitor" ) {
     245                else if( decl->name == "monitor_desc" ) {
    247246                        assert( !decl_monitor );
    248247                        decl_monitor = decl;
Note: See TracChangeset for help on using the changeset viewer.