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:

209582

userrating:


May 25th. 2007:
Words

486

Views

258591

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:

149880

userrating:


April, 26th. 2006:

Druckversion
You are here: manpages





ARES_THREADSAFETY

Section: C Library Functions (3)
Updated: 26 November 2023
Index Return to Main Contents
 

NAME

ares_threadsafety - Query if -ares was built with threa-safety  

SYNOPSIS

#include <ares.h>

ares_bool_t ares_threadsafety(void);
 

DESCRIPTION

The ares_threadsafety(3) function returns if the library was built with thread safety enabled or not.

As of -ares 1.23.0, this simply means that every public function which references an ares_channel_t object will lock the channel on entry and release the lock on exit of the function. This will prevent concurrent thread access to the channel, thus ensuring no corruption can occur.

As of -ares 1.26.0, this also indicates if ARES_OPT_EVENT_THREAD can be passed to ares_init_options(3).

 

RETURN VALUES

ares_threadsafety(3) can return any of the following values:
ARES_TRUE
Built with thread safety.
ARES_FALSE
Built without thread safety
 

AVAILABILITY

This function was first introduced in -ares version 1.23.0.  

SEE ALSO

ares_init(3), ares_init_options(3), ares_destroy(3), ares_dup(3), ares_library_init(3), ares_set_servers(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: 15.0 ms