Ignore:
Timestamp:
Aug 27, 2021, 12:51:55 PM (9 months ago)
Author:
caparsons <caparson@…>
Branches:
enum, forall-pointer-decay, jacob/cs343-translation, master
Children:
1b97976
Parents:
9f5a19fa
Message:

Added support for locks as parameters to mutex stmt

File:
1 edited

Legend:

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

    r9f5a19fa raf67ee1  
    1 #include <mutex_stmt_locks.hfa>
     1#include <mutex_stmt.hfa>
    22#include <locks.hfa>
    33
     
    1313        for (unsigned int i = 0; i < num_times; i++) {
    1414                mutex ( m1 ) count++;
    15                 mutex ( m1 ) {
     15                mutex ( m1 ) { 
    1616                        assert(!insideFlag);
    1717                        insideFlag = true;
     
    6565        printf("Start Test: single lock mutual exclusion\n");
    6666        {
    67                 T_Mutex t[10];
     67                T_Mutex t[1];
    6868        }
    6969        printf("End Test: single lock mutual exclusion\n");
Note: See TracChangeset for help on using the changeset viewer.