Home
last modified time | relevance | path

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

/tools/testing/selftests/net/tcp_ao/lib/
A Dsetup.c177 static pthread_mutex_t sync_lock = PTHREAD_MUTEX_INITIALIZER; variable
187 pthread_mutex_lock(&sync_lock); in synchronize_threads()
195 pthread_cond_wait(&sync_cond, &sync_lock); in synchronize_threads()
196 pthread_mutex_unlock(&sync_lock); in synchronize_threads()
/tools/testing/selftests/proc/
A Dproc-maps-race.c99 pthread_mutex_t sync_lock; member
171 pthread_mutex_lock(&mod_info->sync_lock); in wait_for_state()
173 pthread_cond_wait(&mod_info->sync_cond, &mod_info->sync_lock); in wait_for_state()
174 pthread_mutex_unlock(&mod_info->sync_lock); in wait_for_state()
179 pthread_mutex_lock(&mod_info->sync_lock); in signal_state()
182 pthread_mutex_unlock(&mod_info->sync_lock); in signal_state()
424 ASSERT_EQ(pthread_mutex_init(&mod_info->sync_lock, &mutex_attr), 0); in FIXTURE_SETUP()

Completed in 6 milliseconds