Changeset b93bf85 for src/Concurrency
- Timestamp:
- Jul 11, 2023, 2:27:58 PM (20 months ago)
- Branches:
- master
- Children:
- bbecdd4
- Parents:
- 4c8ce47
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Concurrency/Waituntil.cpp
r4c8ce47 rb93bf85 1290 1290 // Collection of unregister calls on resources to be put in finally clause 1291 1291 // for each clause: 1292 // when_cond_i = (!__CFA_has_clause_run( clause_statuses[i] )) && unregister_select( ... , clausei );1292 // if ( !__CFA_has_clause_run( clause_statuses[i] )) && unregister_select( ... , clausei ) ) { ... clausei stmt ... } 1293 1293 // OR if when( ... ) defined on resource 1294 // if ( when_cond_i ) 1295 // when_cond_i = (!__CFA_has_clause_run( clause_statuses[i] )) && unregister_select( ... , clausei ); 1294 // if ( when_cond_i && (!__CFA_has_clause_run( clause_statuses[i] )) && unregister_select( ... , clausei ) ) { ... clausei stmt ... } 1296 1295 CompoundStmt * unregisters = new CompoundStmt( loc ); 1297 1298 1296 1299 1297 Expr * statusExpr; // !__CFA_has_clause_run( clause_statuses[i] ) … … 1348 1346 new IfStmt( cLoc, 1349 1347 statusExpr, 1350 genStmtBlock( stmt->clauses.at(i), clauseData.at(i) ) 1351 ) 1352 ); 1348 new CompoundStmt( cLoc, 1349 { 1350 new IfStmt( cLoc, 1351 genSelectTraitCall( stmt->clauses.at(i), clauseData.at(i), "on_selected" ), 1352 ast::deepCopy( stmt->clauses.at(i)->stmt ) 1353 ) 1354 } 1355 ) 1356 ) 1357 ); 1358 1359 // // generates: 1360 // // if ( statusExpr ) { ... clausei stmt ... } 1361 // unregisters->push_back( 1362 // new IfStmt( cLoc, 1363 // statusExpr, 1364 // genStmtBlock( stmt->clauses.at(i), clauseData.at(i) ) 1365 // ) 1366 // ); 1353 1367 } 1354 1368
Note: See TracChangeset
for help on using the changeset viewer.