/*
* Wait for all the coordinators to start.
*/
- if (fr_thread_wait(sem, coord_threads) < 0) {
+ if (fr_thread_wait_list(sem, coord_threads) < 0) {
ERROR("Failed creating coordinator threads");
return -1;
}
* they've started, OR there's been a problem and they
* can't start.
*/
- if (fr_thread_wait(sc->network_sem, &sc->networks) < 0) {
+ if (fr_thread_wait_list(sc->network_sem, &sc->networks) < 0) {
fr_schedule_destroy(&sc);
return NULL;
}
* they've started, OR there's been a problem and they
* can't start.
*/
- if (fr_thread_wait(sc->worker_sem, &sc->workers) < 0) {
+ if (fr_thread_wait_list(sc->worker_sem, &sc->workers) < 0) {
fr_schedule_destroy(&sc);
return NULL;
}
* - 0 for success
* - <0 negative number of threads which failed to start
*/
-int fr_thread_wait(fr_sem_t *sem, fr_dlist_head_t *head)
+int fr_thread_wait_list(fr_sem_t *sem, fr_dlist_head_t *head)
{
unsigned int i, count;
int rcode = 0;
int fr_thread_create(pthread_t *thread, fr_thread_entry_t func, void *arg) CC_HINT(nonnull(1,2));
-int fr_thread_wait(fr_sem_t *sem, fr_dlist_head_t *head) CC_HINT(nonnull);
+int fr_thread_wait_list(fr_sem_t *sem, fr_dlist_head_t *head) CC_HINT(nonnull);
int fr_thread_setup(fr_thread_t *out, char const *name) CC_HINT(nonnull);