Changes in / [dbe2533:4ecc35a]


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/concurrent/mutexstmt/locks.cfa

    rdbe2533 r4ecc35a  
    11#include <mutex_stmt.hfa>
    22#include <locks.hfa>
     3#include <stats.hfa>
    34
    45const unsigned int num_times = 10000;
     
    7576owner_lock l3;
    7677
    77 monitor monitor_t {};
    78 
    79 monitor_t l4;
    80 
    8178thread T_Multi_Poly {};
    8279
     
    8481        for (unsigned int i = 0; i < num_times; i++) {
    8582                refTest( l1 );
    86                 mutex ( l1, l4 ) {
     83                mutex ( l1 ) {
    8784                        assert(!insideFlag);
    8885                        insideFlag = true;
     
    9693                        insideFlag = false;
    9794                }
    98                 mutex ( l3, l1, l4 ) {
     95                mutex ( l3, l1 ) {
    9996                        assert(!insideFlag);
    10097                        insideFlag = true;
     
    10299                        insideFlag = false;
    103100                }
    104                 mutex ( l1, l2, l4 ) {
     101                mutex ( l1, l2 ) {
    105102                        assert(!insideFlag);
    106103                        insideFlag = true;
Note: See TracChangeset for help on using the changeset viewer.