Home
last modified time | relevance | path

Searched refs:test_data_mpsc (Results 1 – 1 of 1) sorted by relevance

/linux/tools/testing/selftests/sync/
A Dsync_stress_consumer.c61 } test_data_mpsc; variable
69 int iterations = test_data_mpsc.iterations; in mpsc_producer_thread()
93 pthread_mutex_lock(&test_data_mpsc.lock); in mpsc_producer_thread()
94 test_data_mpsc.counter++; in mpsc_producer_thread()
95 pthread_mutex_unlock(&test_data_mpsc.lock); in mpsc_producer_thread()
111 int iterations = test_data_mpsc.iterations; in mpcs_consumer_thread()
112 int n = test_data_mpsc.threads; in mpcs_consumer_thread()
140 ASSERT(test_data_mpsc.counter == n * it, in mpcs_consumer_thread()
168 test_data_mpsc.iterations = iterations; in test_consumer_stress_multi_producer_single_consumer()
169 test_data_mpsc.threads = n; in test_consumer_stress_multi_producer_single_consumer()
[all …]

Completed in 3 milliseconds