Changeset b39e961b for tests/concurrent
- Timestamp:
- Mar 21, 2022, 1:40:24 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
- Children:
- dbe2533
- Parents:
- 41d3c8d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrent/mutexstmt/locks.cfa
r41d3c8d rb39e961b 1 1 #include <mutex_stmt.hfa> 2 2 #include <locks.hfa> 3 #include <stats.hfa>4 3 5 4 const unsigned int num_times = 10000; … … 76 75 owner_lock l3; 77 76 77 monitor monitor_t {}; 78 79 monitor_t l4; 80 78 81 thread T_Multi_Poly {}; 79 82 … … 81 84 for (unsigned int i = 0; i < num_times; i++) { 82 85 refTest( l1 ); 83 mutex ( l1 ) {86 mutex ( l1, l4 ) { 84 87 assert(!insideFlag); 85 88 insideFlag = true; … … 93 96 insideFlag = false; 94 97 } 95 mutex ( l3, l1 ) {98 mutex ( l3, l1, l4 ) { 96 99 assert(!insideFlag); 97 100 insideFlag = true; … … 99 102 insideFlag = false; 100 103 } 101 mutex ( l1, l2 ) {104 mutex ( l1, l2, l4 ) { 102 105 assert(!insideFlag); 103 106 insideFlag = true;
Note: See TracChangeset
for help on using the changeset viewer.