Changes in / [dbe2533:4ecc35a]
- File:
-
- 1 edited
-
tests/concurrent/mutexstmt/locks.cfa (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrent/mutexstmt/locks.cfa
rdbe2533 r4ecc35a 1 1 #include <mutex_stmt.hfa> 2 2 #include <locks.hfa> 3 #include <stats.hfa> 3 4 4 5 const unsigned int num_times = 10000; … … 75 76 owner_lock l3; 76 77 77 monitor monitor_t {};78 79 monitor_t l4;80 81 78 thread T_Multi_Poly {}; 82 79 … … 84 81 for (unsigned int i = 0; i < num_times; i++) { 85 82 refTest( l1 ); 86 mutex ( l1 , l4) {83 mutex ( l1 ) { 87 84 assert(!insideFlag); 88 85 insideFlag = true; … … 96 93 insideFlag = false; 97 94 } 98 mutex ( l3, l1 , l4) {95 mutex ( l3, l1 ) { 99 96 assert(!insideFlag); 100 97 insideFlag = true; … … 102 99 insideFlag = false; 103 100 } 104 mutex ( l1, l2 , l4) {101 mutex ( l1, l2 ) { 105 102 assert(!insideFlag); 106 103 insideFlag = true;
Note:
See TracChangeset
for help on using the changeset viewer.