- Timestamp:
- Jan 18, 2022, 1:16:23 PM (4 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
- Children:
- 1e8b4b49, adfd125
- Parents:
- 21a5bfb7 (diff), 91a72ef (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:
- tests/io
- Files:
-
- 10 added
- 1 edited
-
.expect/io-acquire-in.txt (added)
-
.expect/io-acquire-no-io.txt (added)
-
.expect/io-acquire-out.txt (added)
-
.expect/io-acquire2.txt (added)
-
.in/io-acquire-in.txt (added)
-
.in/io-acquire2.txt (added)
-
io-acquire-in.cfa (added)
-
io-acquire-no-io.cfa (added)
-
io-acquire-out.cfa (added)
-
io-acquire.cfa (modified) (4 diffs)
-
io-acquire2.cfa (added)
Legend:
- Unmodified
- Added
- Removed
-
tests/io/io-acquire.cfa
r21a5bfb7 r175f9f4 10 10 // Created On : Mon Mar 1 18:40:09 2021 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Oct 6 18:04:58 202113 // Update Count : 7 212 // Last Modified On : Fri Jan 14 09:13:18 2022 13 // Update Count : 74 14 14 // 15 15 … … 18 18 #include <mutex_stmt.hfa> 19 19 20 Duration default_preemption() { return 0; } 21 20 22 thread T {}; 21 23 void main( T & ) { … … 23 25 24 26 for ( 100 ) { // expression protection 25 mutex( sout) sout | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;27 mutex( sout ) sout | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; 26 28 } 27 29 mutex( sout ) { // statement protection … … 51 53 int a, b, c, d, e, f, g, h, i; 52 54 for ( 100 ) { // expression protection 53 mutex( sin) sin | a | b | c | d | e | f | g | h | i;55 mutex( sin ) sin | a | b | c | d | e | f | g | h | i; 54 56 } 55 57 mutex( sin ) { // statement protection
Note:
See TracChangeset
for help on using the changeset viewer.