]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Implement Channels for communication between threads
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 17 Mar 2022 16:02:05 +0000 (17:02 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 13 Jun 2023 07:59:31 +0000 (09:59 +0200)
commit3fc6d61ca79cd59d3a620badb2255429a04e6155
tree37d8940562fabe1fe651cea89e22fe6967d2ad80
parent27c01b79a7505762cb27e714a30b57835a91b5ae
dnsdist: Implement Channels for communication between threads

Internally this uses the same mechanism as before, passing pointers
over a pipe, but the new classes make that easier to use:
- clear separation between sender and receiver
- clear ownership of the descriptor
- less code duplication
pdns/dnsdistdist/Makefile.am
pdns/dnsdistdist/channel.cc [new file with mode: 0644]
pdns/dnsdistdist/channel.hh [new file with mode: 0644]