Lines Matching defs:timeouts
36 * - timeout thread: thread to fire queued timeouts
50 * - timeouts should fire even when a method is running
2351 timeout_queue_t *timeouts;
2410 timeouts = startd_zalloc(sizeof (timeout_queue_t));
2412 (void) pthread_mutex_init(&timeouts->tq_lock, &mutex_attrs);
2414 timeout_pool = startd_list_pool_create("timeouts",
2419 timeouts->tq_list = startd_list_create(timeout_pool,
2420 timeouts, UU_LIST_SORTED);
2421 assert(timeouts->tq_list != NULL);
2459 MUTEX_LOCK(&timeouts->tq_lock);
2460 (void) uu_list_find(timeouts->tq_list, entry, NULL, &idx);
2462 uu_list_insert(timeouts->tq_list, entry, idx);
2463 MUTEX_UNLOCK(&timeouts->tq_lock);
2485 MUTEX_LOCK(&timeouts->tq_lock);
2486 uu_list_remove(timeouts->tq_list, inst->ri_timeout);
2487 MUTEX_UNLOCK(&timeouts->tq_lock);
2505 * Walk through the (sorted) timeouts list. While the timeout
2509 MUTEX_LOCK(&timeouts->tq_lock);
2511 for (e = uu_list_first(timeouts->tq_list);
2513 e = uu_list_next(timeouts->tq_list, e)) {
2523 if (uu_list_numnodes(timeouts->tq_list) > 0)
2528 MUTEX_UNLOCK(&timeouts->tq_lock);
2535 * Responsible for monitoring the method timeouts. This thread must
2544 * this thread. As timeouts are specified in seconds, we'll do
2560 /* The list is empty, wait until we have more timeouts. */