Changeset 8f1a99e for tests/unified_locking/thread_test.cfa
- Timestamp:
- Jul 5, 2021, 4:58:07 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- b7d94ac5
- Parents:
- 7f62b708
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/unified_locking/thread_test.cfa
r7f62b708 r8f1a99e 40 40 for (unsigned int i = 0; i < num_times; i++) { 41 41 dowork(buffer, work_unlocked); 42 lock( curr_lock);42 lock(*curr_lock); 43 43 //printf("lock: %d %p ENTER\n", i, &curr_lock); 44 44 //lock(norm_lock); 45 45 dowork(buffer, work_locked); 46 46 //printf("lock: %d %p LEAVE\n", i, &curr_lock); 47 unlock( curr_lock);47 unlock(*curr_lock); 48 48 //unlock(norm_lock); 49 49 lck = rand() % lockCount; … … 65 65 break; 66 66 default: 67 break; 67 break; 68 68 } 69 69 processor p[threadCount];
Note: See TracChangeset
for help on using the changeset viewer.