| 40 | int al_done = 0; |
| 41 | |
| 42 | void * |
| 43 | testalist(void *ame) |
| 44 | { |
| 45 | int me = static_cast<int>((uintptr_t)ame); |
| 46 | int j, k; |
| 47 | for (k = 0; k < MAX_ALIST_ARRAY; k++) { |
| 48 | ink_atomiclist_push(&al[k % MAX_ALIST_TEST], &al_test[me][k]); |
| 49 | } |
| 50 | void *x; |
| 51 | for (j = 0; j < 1000000; j++) { |
| 52 | if ((x = ink_atomiclist_pop(&al[me]))) { |
| 53 | ink_atomiclist_push(&al[rand() % MAX_ALIST_TEST], x); |
| 54 | } |
| 55 | } |
| 56 | ink_atomic_increment(&al_done, 1); |
| 57 | return nullptr; |
| 58 | } |
| 59 | #endif // !LONG_ATOMICLIST_TEST |
| 60 | |
| 61 | #ifdef LONG_ATOMICLIST_TEST |
nothing calls this directly
no test coverage detected