]> git.ipfire.org Git - thirdparty/pdns.git/commit
Lock: Don't access and even less write to errno unless we have to
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 28 Jul 2017 13:34:03 +0000 (15:34 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 5 Sep 2017 14:52:23 +0000 (16:52 +0200)
commitd90dad50b5717c3774ac0ddd47b51a52843a35b6
tree03316bfb5846dc720f89d795d3d38354d16b84d0
parent0beaa5c825059986d3ce108a4bd2578a08d6d1d0
Lock: Don't access and even less write to errno unless we have to

POSIX.1c made `errno` a thread-local, meaning its performance is
far worse than the one of a local variable.
pdns/lock.hh