Changeset 2b3ebe5 for tests/concurrency/waitfor
- Timestamp:
- Feb 25, 2026, 12:52:06 AM (3 days ago)
- Branches:
- stuck-waitfor-destruct
- Children:
- 6018ddb
- Parents:
- f1cb193
- git-author:
- Matthew Au-Yeung <mw2auyeu@…> (02/14/26 23:06:29)
- git-committer:
- Matthew Au-Yeung <mw2auyeu@…> (02/25/26 00:52:06)
- Location:
- tests/concurrency/waitfor
- Files:
-
- 2 added
- 2 edited
- 2 moved
-
autogen_destructor.cfa (modified) (1 diff)
-
gendestructor.cfa (moved) (moved from tests/concurrency/waitfor/nodestructor.cfa ) (1 diff)
-
gendestructor.hfa (moved) (moved from tests/concurrency/waitfor/nodestructor.hfa )
-
inlinemutex.cfa (added)
-
inlinemutex.hfa (added)
-
static_inline.cfa (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrency/waitfor/autogen_destructor.cfa
rf1cb193 r2b3ebe5 1 #include " nodestructor.hfa"1 #include "gendestructor.hfa" 2 2 3 3 int main(int, char*[]) { -
tests/concurrency/waitfor/gendestructor.cfa
rf1cb193 r2b3ebe5 1 #include " nodestructor.hfa"1 #include "gendestructor.hfa" 2 2 3 3 #include <fstream.hfa> -
tests/concurrency/waitfor/static_inline.cfa
rf1cb193 r2b3ebe5 1 #include <fstream.hfa> 2 #include <thread.hfa> 3 4 thread Cleaner {}; 5 6 static inline void ^?{} ( Cleaner &mutex this ) {} 7 8 static inline void cleanup( Cleaner &mutex this ) {} 9 10 void main( Cleaner & this ) { 11 waitfor( cleanup : this ) { 12 sout | "Cleaning"; 13 } 14 15 waitfor( ^?{} : this ) { 16 sout | "Done"; 17 } 18 } 1 #include "inlinemutex.hfa" 19 2 20 3 int main() {
Note:
See TracChangeset
for help on using the changeset viewer.