Changeset 81da3da4 for src/Concurrency
- Timestamp:
- Dec 11, 2023, 4:18:13 AM (2 years ago)
- Branches:
- master, stuck-waitfor-destruct
- Children:
- 21ce2c7, 2554f24
- Parents:
- 5ddb8bf (diff), 1c85ffc (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. - Location:
- src/Concurrency
- Files:
-
- 4 edited
- 2 moved
-
Actors.cpp (modified) (6 diffs)
-
Corun.cpp (modified) (2 diffs)
-
Keywords.cpp (moved) (moved from src/Concurrency/KeywordsNew.cpp ) (7 diffs)
-
Waitfor.cpp (moved) (moved from src/Concurrency/WaitforNew.cpp ) (1 diff)
-
Waituntil.cpp (modified) (2 diffs)
-
module.mk (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Concurrency/Actors.cpp
r5ddb8bf r81da3da4 265 265 decl->location, 266 266 "__CFA_receive_wrap", 267 {}, // forall268 267 { 269 268 new ObjectDecl( … … 288 287 ) 289 288 }, // params 290 { 289 { 291 290 new ObjectDecl( 292 291 decl->location, … … 400 399 ) 401 400 )); 402 401 403 402 // Generates: return receiver; 404 403 sendBody->push_back( new ReturnStmt( decl->location, new NameExpr( decl->location, "receiver" ) ) ); … … 408 407 decl->location, 409 408 "?|?", 410 {}, // forall411 409 { 412 410 new ObjectDecl( … … 421 419 ) 422 420 }, // params 423 { 421 { 424 422 new ObjectDecl( 425 423 decl->location, … … 434 432 { Function::Inline } 435 433 ); 436 434 437 435 // forward decls to resolve use before decl problem for '|' routines 438 436 forwardDecls.insertDecl( *actorIter, *messageIter , ast::deepCopy( sendOperatorFunction ) ); -
src/Concurrency/Corun.cpp
r5ddb8bf r81da3da4 113 113 new FunctionDecl( loc, 114 114 fnName, // name 115 {}, // forall116 115 { 117 116 new ObjectDecl( loc, … … 261 260 new FunctionDecl( loc, 262 261 fnName, // name 263 {}, // forall264 262 {}, // params 265 263 {}, // return -
src/Concurrency/Keywords.cpp
r5ddb8bf r81da3da4 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Keywords New.cpp -- Implement concurrency constructs from their keywords.7 // Keywords.cpp -- Implement concurrency constructs from their keywords. 8 8 // 9 9 // Author : Andrew Beach … … 14 14 // 15 15 16 #include "Concurrency/Keywords.h" 17 16 18 #include <iostream> 17 18 #include "Concurrency/Keywords.h"19 19 20 20 #include "AST/Copy.hpp" … … 30 30 #include "Common/utility.h" 31 31 #include "Common/UniqueName.h" 32 #include "ControlStruct/LabelGenerator New.hpp"32 #include "ControlStruct/LabelGenerator.hpp" 33 33 #include "InitTweak/InitTweak.h" 34 34 #include "Virtual/Tables.h" … … 482 482 location, 483 483 getter_name, 484 {}, // forall485 484 { this_decl }, // params 486 485 { ret_decl }, // returns … … 499 498 location, 500 499 "main", 501 {},502 500 { ast::deepCopy( this_decl ) }, 503 501 {}, … … 575 573 location, 576 574 "lock", 577 { /* forall */ },578 575 { 579 576 // Copy the declaration of this. … … 607 604 location, 608 605 "unlock", 609 { /* forall */ },610 606 { 611 607 // Last use, consume the declaration of this. -
src/Concurrency/Waitfor.cpp
r5ddb8bf r81da3da4 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Waitfor New.cpp -- Expand waitfor clauses into code.7 // Waitfor.cpp -- Expand waitfor clauses into code. 8 8 // 9 9 // Author : Andrew Beach -
src/Concurrency/Waituntil.cpp
r5ddb8bf r81da3da4 553 553 return new FunctionDecl( loc, 554 554 predName, 555 {}, // forall556 555 { 557 556 new ObjectDecl( loc, … … 560 559 ) 561 560 }, 562 { 561 { 563 562 new ObjectDecl( loc, 564 563 "sat_ret", -
src/Concurrency/module.mk
r5ddb8bf r81da3da4 20 20 Concurrency/Corun.cpp \ 21 21 Concurrency/Corun.hpp \ 22 Concurrency/Keywords New.cpp \22 Concurrency/Keywords.cpp \ 23 23 Concurrency/Keywords.h \ 24 Concurrency/Waitfor New.cpp \24 Concurrency/Waitfor.cpp \ 25 25 Concurrency/Waitfor.h \ 26 26 Concurrency/Waituntil.cpp \
Note:
See TracChangeset
for help on using the changeset viewer.