Ignore:
Timestamp:
Jul 5, 2021, 4:58:07 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
b7d94ac5
Parents:
7f62b708
Message:

Step 3 Fixed tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/unified_locking/thread_test.cfa

    r7f62b708 r8f1a99e  
    4040    for (unsigned int i = 0; i < num_times; i++) {
    4141        dowork(buffer, work_unlocked);
    42         lock(curr_lock);
     42        lock(*curr_lock);
    4343        //printf("lock: %d %p ENTER\n", i, &curr_lock);
    4444        //lock(norm_lock);
    4545        dowork(buffer, work_locked);
    4646        //printf("lock: %d %p LEAVE\n", i, &curr_lock);
    47         unlock(curr_lock);
     47        unlock(*curr_lock);
    4848        //unlock(norm_lock);
    4949        lck = rand() % lockCount;
     
    6565            break;
    6666        default:
    67             break; 
     67            break;
    6868    }
    6969        processor p[threadCount];
Note: See TracChangeset for help on using the changeset viewer.