]> git.ipfire.org Git - thirdparty/bind9.git/commit
Use library constructor to create default mutex attr once
authorOndřej Surý <ondrej@isc.org>
Wed, 13 Jul 2022 11:19:32 +0000 (13:19 +0200)
committerMichał Kępień <michal@isc.org>
Wed, 13 Jul 2022 11:19:32 +0000 (13:19 +0200)
commit8e5e0fa522d84dfc401708b3d4f6dd47a58327bd
tree2e67d0ce16a8393782e7eb3d367d33baab04725d
parent5759ace07f70ed32a40d733bacd35e062c28bd3c
Use library constructor to create default mutex attr once

Instead of using isc_once_do() on every isc_mutex_init() call, use the
global library constructor to initialize the default mutex attr
object (optionally with PTHREAD_MUTEX_ADAPTIVE_NP if supported) just
once when the library is loaded.
lib/isc/Makefile.am
lib/isc/lib.c
lib/isc/mutex.c
lib/isc/mutex_p.h [new file with mode: 0644]