Changeset a9ce782 for src/Concurrency/Keywords.cpp
- Timestamp:
- Feb 7, 2026, 1:40:26 PM (18 hours ago)
- Branches:
- stuck-waitfor-destruct
- Parents:
- c7d106a
- git-author:
- Matthew Au-Yeung <mw2auyeu@…> (02/07/26 13:40:05)
- git-committer:
- Matthew Au-Yeung <mw2auyeu@…> (02/07/26 13:40:26)
- File:
-
- 1 edited
-
src/Concurrency/Keywords.cpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Concurrency/Keywords.cpp
rc7d106a ra9ce782 29 29 #include "Common/Examine.hpp" 30 30 #include "Common/Utility.hpp" 31 #include "Concurrency/MutexFuncHash.hpp" 31 32 #include "Common/UniqueName.hpp" 32 33 #include "ControlStruct/LabelGenerator.hpp" … … 1077 1078 1078 1079 // In reverse order: 1079 // monitor_dtor_guard_t __guard = { __monitor, func, f alse };1080 // monitor_dtor_guard_t __guard = { __monitor, func, func_id, false }; 1080 1081 mutBody->push_front( 1081 1082 new ast::DeclStmt( location, new ast::ObjectDecl( … … 1094 1095 generic_func, 1095 1096 ast::ExplicitCast ) ), 1097 new ast::SingleInit( location, 1098 Concurrency::hashMangleExpr( location, func ) ), 1096 1099 new ast::SingleInit( location, 1097 1100 ast::ConstantExpr::from_bool( location, false ) ), … … 1175 1178 ast::ExplicitCast 1176 1179 ) ), 1180 new ast::SingleInit( location, 1181 Concurrency::hashMangleExpr( location, func ) ), 1177 1182 }, 1178 1183 {}, … … 1475 1480 1476 1481 ast::CompoundStmt * MutexKeyword::addThreadDtorStatements( 1477 const ast::FunctionDecl* , const ast::CompoundStmt * body,1482 const ast::FunctionDecl* func, const ast::CompoundStmt * body, 1478 1483 const std::vector<const ast::DeclWithType * > & args ) { 1479 1484 assert( args.size() == 1 ); … … 1487 1492 const CodeLocation & location = mutBody->location; 1488 1493 1489 // thread_dtor_guard_t __guard = { this, intptr( 0 ) };1494 // thread_dtor_guard_t __guard = { this, func_id, intptr( 0 ) }; 1490 1495 mutBody->push_front( new ast::DeclStmt( 1491 1496 location, … … 1500 1505 new ast::CastExpr( location, 1501 1506 new ast::VariableExpr( location, arg ), argType ) ), 1507 new ast::SingleInit( location, 1508 Concurrency::hashMangleExpr( location, func ) ), 1502 1509 new ast::SingleInit( 1503 1510 location,
Note:
See TracChangeset
for help on using the changeset viewer.