Changeset 7e8c071
- Timestamp:
- Feb 14, 2026, 11:06:29 PM (37 hours ago)
- Branches:
- stuck-waitfor-destruct
- Parents:
- a56d544
- Location:
- tests
- Files:
-
- 2 added
- 3 edited
- 2 moved
-
Makefile.am (modified) (2 diffs)
-
concurrency/waitfor/autogen_destructor.cfa (modified) (1 diff)
-
concurrency/waitfor/gendestructor.cfa (moved) (moved from tests/concurrency/waitfor/nodestructor.cfa ) (1 diff)
-
concurrency/waitfor/gendestructor.hfa (moved) (moved from tests/concurrency/waitfor/nodestructor.hfa )
-
concurrency/waitfor/inlinemutex.cfa (added)
-
concurrency/waitfor/inlinemutex.hfa (added)
-
concurrency/waitfor/static_inline.cfa (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tests/Makefile.am
ra56d544 r7e8c071 119 119 .PHONY : concurrency list .validate .test_makeflags 120 120 .INTERMEDIATE : .validate .validate.cfa .test_makeflags 121 EXTRA_PROGRAMS = array-collections/boxed avl_test linkonce concurrency/waitfor/autogen_destructor linking/mangling/anon .dummy_hack # build but do not install 121 EXTRA_PROGRAMS = array-collections/boxed \ 122 avl_test \ 123 linkonce \ 124 concurrency/waitfor/autogen_destructor \ 125 concurrency/waitfor/static_inline \ 126 linking/mangling/anon \ 127 .dummy_hack # build but do not install 122 128 EXTRA_DIST = test.py \ 123 129 pybin/__init__.py \ … … 154 160 avl_test_SOURCES = avltree/avl_test.cfa avltree/avl0.cfa avltree/avl1.cfa avltree/avl2.cfa avltree/avl3.cfa avltree/avl4.cfa avltree/avl-private.cfa 155 161 linkonce_SOURCES = link-once/main.cfa link-once/partner.cfa 156 concurrency_waitfor_autogen_destructor_SOURCES = concurrency/waitfor/autogen_destructor.cfa concurrency/waitfor/nodestructor.cfa 162 concurrency_waitfor_autogen_destructor_SOURCES = concurrency/waitfor/autogen_destructor.cfa concurrency/waitfor/gendestructor.cfa 163 concurrency_waitfor_static_inline_SOURCES = concurrency/waitfor/static_inline.cfa concurrency/waitfor/inlinemutex.cfa 157 164 linking_mangling_anon_SOURCES = linking/mangling/header.hfa linking/mangling/lib.cfa linking/mangling/main.cfa 158 165 # automake doesn't know we still need C/CPP rules so pretend like we have a C program -
tests/concurrency/waitfor/autogen_destructor.cfa
ra56d544 r7e8c071 1 #include " nodestructor.hfa"1 #include "gendestructor.hfa" 2 2 3 3 int main(int, char*[]) { -
tests/concurrency/waitfor/gendestructor.cfa
ra56d544 r7e8c071 1 #include " nodestructor.hfa"1 #include "gendestructor.hfa" 2 2 3 3 #include <fstream.hfa> -
tests/concurrency/waitfor/static_inline.cfa
ra56d544 r7e8c071 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.