folly/experimental/hazptr: mark static local as "library-local"
authorAndrew Gallagher <andrewjcg@fb.com>
Thu, 27 Oct 2016 18:38:46 +0000 (11:38 -0700)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Thu, 27 Oct 2016 18:53:29 +0000 (11:53 -0700)
commitb7e1694cdf04858065fdca43ed61ecf5f178ed7d
treefdba9f48f091816e2fe94ad4fefd0d8bb3c9a69c
parent94e964976c1b65e79b0f7bdd960cfec260399a52
folly/experimental/hazptr: mark static local as "library-local"

Summary:
When using `-fvisibility-inlines-hidden` or using C/C++ shared libs
transitively from a Python binary, static locals in inline functions
can potentially have more than one definition at runtime.  This diff
explicitly marks this static local as safe for this scenario.

Reviewed By: djwatson

Differential Revision: D4082831

fbshipit-source-id: 75616ac26a39f44691ef59b889ea555e9daa391b
folly/experimental/hazptr/memory_resource.h