]> git.ipfire.org Git - thirdparty/pdns.git/commit - pdns/recursordist/test-syncres_cc.cc
rec: Use C++11's thread_local instead of __thread
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 3 Apr 2017 16:09:47 +0000 (18:09 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Sun, 14 May 2017 12:30:55 +0000 (14:30 +0200)
commitf26bf5471ce15c1e826a8a3250954c2bc26e7370
treea89de7438c9cbd904ebc618afae28c852fe18de3
parent9065eb05f41b5799bbb9e4ddf32834607635687b
rec: Use C++11's thread_local instead of __thread

Since `thread_local` supports non-trivial types, this move allows
us to get rid of many existing naked pointers in the rec.
Requires gcc 4.8+ or clang 3.3+.
pdns/pdns_recursor.cc
pdns/recursordist/test-syncres_cc.cc
pdns/reczones.cc
pdns/syncres.cc
pdns/syncres.hh