from small one page howto to huge articles all in one place

search text in:




Other .linuxhowtos.org sites:gentoo.linuxhowtos.org



Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

209581

userrating:


May 25th. 2007:
Words

486

Views

258588

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

149878

userrating:


April, 26th. 2006:

Druckversion
You are here: manpages





ARES_QUEUE

Section: C Library Functions (3)
Updated: 16 February 2024
Index Return to Main Contents
 

NAME

ares_queue_wait_empty, ares_queue_active_queries - Functions for checking the -ares queue status  

SYNOPSIS

#include <ares.h>

size_t ares_queue_active_queries(const ares_channel_t *channel);

ares_status_t ares_queue_wait_empty(ares_channel_t *channel,
                                    int timeout_ms);
 

DESCRIPTION

The ares_queue_active_queries(3) function retrieves the total number of active queries pending answers from servers. Some -ares requests may spawn multiple queries, such as ares_getaddrinfo(3) when using AF_UNSPEC, which will be reflected in this number. The channel parameter must be set to an initialized channel.

The ares_queue_wait_empty(3) function blocks until notified that there are no longer any queries in queue, or the specified timeout has expired. The channel parameter must be set to an initialized channel. The timeout_ms parameter is the number of milliseconds to wait for the queue to be empty or-1 for Infinite.

 

RETURN VALUES

ares_queue_active_queries(3) returns the active query count.

ares_queue_wait_empty(3) can return any of the following values:

ARES_ENOTIMP
if not built with threading support
ARES_ETIMEOUT
if requested timeout expired
ARES_SUCCESS
when queue is empty.
 

AVAILABILITY

This function was first introduced in -ares version 1.27.0, and requires the -ares library to be built with threading support.

 

SEE ALSO

ares_init_options(3), ares_threadsafety(3)


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES
AVAILABILITY
SEE ALSO





Support us on Content Nation
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 10.3 ms