#include <atomic_hook.h>
Public Member Functions | |
constexpr | AtomicHook () |
constexpr | AtomicHook (FnPtr default_fn) |
FnPtr | Load () const |
template<typename... CallArgs> | |
ReturnType | operator() (CallArgs &&...args) const |
void | Store (FnPtr fn) |
Private Member Functions | |
FnPtr | DoLoad () const |
bool | DoStore (FnPtr fn) |
Static Private Member Functions | |
static ReturnType | DummyFunction (Args...) |
Private Attributes | |
const FnPtr | default_fn_ |
std::atomic< FnPtr > | hook_ |
Definition at line 50 of file atomic_hook.h.
constexpr absl::base_internal::AtomicHook< ReturnType(*)(Args...)>::AtomicHook | ( | ) | [inline] |
Definition at line 56 of file atomic_hook.h.
constexpr absl::base_internal::AtomicHook< ReturnType(*)(Args...)>::AtomicHook | ( | FnPtr | default_fn | ) | [inline, explicit] |
Definition at line 61 of file atomic_hook.h.
FnPtr absl::base_internal::AtomicHook< ReturnType(*)(Args...)>::DoLoad | ( | ) | const [inline, private] |
Definition at line 115 of file atomic_hook.h.
bool absl::base_internal::AtomicHook< ReturnType(*)(Args...)>::DoStore | ( | FnPtr | fn | ) | [inline, private] |
Definition at line 119 of file atomic_hook.h.
static ReturnType absl::base_internal::AtomicHook< ReturnType(*)(Args...)>::DummyFunction | ( | Args... | ) | [inline, static, private] |
Definition at line 102 of file atomic_hook.h.
FnPtr absl::base_internal::AtomicHook< ReturnType(*)(Args...)>::Load | ( | ) | const [inline] |
Definition at line 96 of file atomic_hook.h.
ReturnType absl::base_internal::AtomicHook< ReturnType(*)(Args...)>::operator() | ( | CallArgs &&... | args | ) | const [inline] |
Definition at line 83 of file atomic_hook.h.
void absl::base_internal::AtomicHook< ReturnType(*)(Args...)>::Store | ( | FnPtr | fn | ) | [inline] |
Definition at line 74 of file atomic_hook.h.
const FnPtr absl::base_internal::AtomicHook< ReturnType(*)(Args...)>::default_fn_ [private] |
Definition at line 157 of file atomic_hook.h.
std::atomic<FnPtr> absl::base_internal::AtomicHook< ReturnType(*)(Args...)>::hook_ [private] |
Definition at line 128 of file atomic_hook.h.