Changeset ebd1899
- Timestamp:
- Dec 21, 2020, 9:58:19 AM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- de2f969
- Parents:
- 089b1a9a
- Location:
- tests
- Files:
-
- 2 added
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
tests/unified_locking/timeout_lock.cfa
r089b1a9a rebd1899 26 26 lock(m); 27 27 wait( c_m, m, 1`s ); 28 printf("Thread: %p timedout\n", active_thread());28 // printf("Thread: %p timedout\n", active_thread()); // removed since can't expect non deterministic output 29 29 30 30 block(); … … 34 34 for ( unsigned int i = 0; i < NoOfTimes + 3; i += 1 ) { 35 35 if ( wait( c_m, m, 1`s ) ) { 36 printf("Thread: %p signalled\n", active_thread());36 // printf("Thread: %p signalled\n", active_thread()); // removed since can't expect non deterministic output 37 37 } else { 38 printf("Thread: %p timedout\n", active_thread());38 // printf("Thread: %p timedout\n", active_thread()); // removed since can't expect non deterministic output 39 39 } // if 40 40
Note: See TracChangeset
for help on using the changeset viewer.