Lines Matching defs:timeouts
35 * - timeout thread: thread to fire queued timeouts
49 * - timeouts should fire even when a method is running
2261 timeout_queue_t *timeouts;
2320 timeouts = startd_zalloc(sizeof (timeout_queue_t));
2322 (void) pthread_mutex_init(&timeouts->tq_lock, &mutex_attrs);
2324 timeout_pool = startd_list_pool_create("timeouts",
2329 timeouts->tq_list = startd_list_create(timeout_pool,
2330 timeouts, UU_LIST_SORTED);
2331 assert(timeouts->tq_list != NULL);
2369 MUTEX_LOCK(&timeouts->tq_lock);
2370 (void) uu_list_find(timeouts->tq_list, entry, NULL, &idx);
2372 uu_list_insert(timeouts->tq_list, entry, idx);
2373 MUTEX_UNLOCK(&timeouts->tq_lock);
2395 MUTEX_LOCK(&timeouts->tq_lock);
2396 uu_list_remove(timeouts->tq_list, inst->ri_timeout);
2397 MUTEX_UNLOCK(&timeouts->tq_lock);
2415 * Walk through the (sorted) timeouts list. While the timeout
2419 MUTEX_LOCK(&timeouts->tq_lock);
2421 for (e = uu_list_first(timeouts->tq_list);
2423 e = uu_list_next(timeouts->tq_list, e)) {
2433 if (uu_list_numnodes(timeouts->tq_list) > 0)
2438 MUTEX_UNLOCK(&timeouts->tq_lock);
2445 * Responsible for monitoring the method timeouts. This thread must
2454 * this thread. As timeouts are specified in seconds, we'll do
2470 /* The list is empty, wait until we have more timeouts. */