Home | History | Annotate | Download | only in tests

Lines Matching refs:rc

20     int rc;
25 rc = pthread_mutex_lock(&mutex);
26 assert(!rc);
31 rc = pthread_cond_wait(&cond_var, &mutex);
32 assert(!rc);
39 rc = pthread_mutex_unlock(&mutex);
40 assert(!rc);
50 int rc;
56 rc = pthread_mutex_init(&mutex, NULL);
57 assert(!rc);
58 rc = pthread_cond_init(&cond_var, NULL);
59 assert(!rc);
63 rc = pthread_create(&other_thread, NULL, run_fn, NULL);
64 assert(!rc);
71 rc = pthread_mutex_lock(&mutex);
72 assert(!rc);
78 rc = pthread_cond_broadcast(&cond_var);
79 assert(!rc);
82 rc = pthread_mutex_unlock(&mutex);
83 assert(!rc);
88 rc = pthread_join(other_thread, NULL);
89 assert(!rc);