- Timestamp:
- Aug 21, 2025, 11:14:05 PM (7 weeks ago)
- Branches:
- master
- Children:
- 31be464
- Parents:
- 1324fde
- Location:
- tests/concurrency/unified_locking
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrency/unified_locking/locks.cfa
r1324fde r8dc8f68 7 7 8 8 multiple_acquisition_lock m; 9 cond ition_variable( multiple_acquisition_lock ) c_m;9 cond_lock( multiple_acquisition_lock ) c_m; 10 10 11 11 single_acquisition_lock s; 12 cond ition_variable( single_acquisition_lock ) c_s;12 cond_lock( single_acquisition_lock ) c_s; 13 13 14 14 owner_lock o; 15 cond ition_variable( owner_lock ) c_o;15 cond_lock( owner_lock ) c_o; 16 16 17 17 exp_backoff_then_block_lock l; 18 cond ition_variable( exp_backoff_then_block_lock ) c_l;18 cond_lock( exp_backoff_then_block_lock ) c_l; 19 19 20 20 fast_block_lock f; -
tests/concurrency/unified_locking/pthread_locks.cfa
r1324fde r8dc8f68 12 12 13 13 owner_lock l2; 14 cond ition_variable( owner_lock ) c2;14 cond_lock( owner_lock ) c2; 15 15 16 16 volatile int counter = 0; -
tests/concurrency/unified_locking/timeout_lock.cfa
r1324fde r8dc8f68 7 7 8 8 multiple_acquisition_lock m, n; 9 cond ition_variable( multiple_acquisition_lock ) c_m, c_n;9 cond_lock( multiple_acquisition_lock ) c_m, c_n; 10 10 11 11 const unsigned int NoOfTimes = 20; … … 73 73 processor p[2]; 74 74 printf("Start Test 1: surface testing condition variable timeout routines\n"); 75 wait( c_m, 1`ns ); // bool wait( cond ition_variable(L) & this, Duration duration );76 wait( c_m, 10, 1`ns ); // bool wait( cond ition_variable(L) & this, uintptr_t info, Duration duration );77 lock(m); wait( c_m, m, 1`ns ); unlock(m); // bool wait( cond ition_variable(L) & this, L & l, Duration duration );78 lock(m); wait( c_m, m, 10, 1`ns ); unlock(m); // bool wait( cond ition_variable(L) & this, L & l, uintptr_t info, Duration duration );75 wait( c_m, 1`ns ); // bool wait( cond_lock(L) & this, Duration duration ); 76 wait( c_m, 10, 1`ns ); // bool wait( cond_lock(L) & this, uintptr_t info, Duration duration ); 77 lock(m); wait( c_m, m, 1`ns ); unlock(m); // bool wait( cond_lock(L) & this, L & l, Duration duration ); 78 lock(m); wait( c_m, m, 10, 1`ns ); unlock(m); // bool wait( cond_lock(L) & this, L & l, uintptr_t info, Duration duration ); 79 79 printf("Done Test 1\n"); 80 80
Note:
See TracChangeset
for help on using the changeset viewer.