|
HydraHook
Direct3D and Core Audio hooking library for Windows
|
RAII guard placed at the top of every hook lambda. More...
#include <Engine.h>
Public Member Functions | |
| Guard () noexcept | |
| ~Guard () noexcept | |
| Guard (const Guard &)=delete | |
| Guard & | operator= (const Guard &)=delete |
Public Attributes | |
| bool | invoke |
RAII guard placed at the top of every hook lambda.
Increments the in-flight count on construction, decrements on destruction. The invoke flag is captured once so that pre- and post-callbacks are always symmetric (both run or neither).
|
inlinenoexcept |
Definition at line 189 of file Engine.h.
References invoke, HookActivityTracker::s_active, and HookActivityTracker::s_shutting_down.
Referenced by Guard(), and operator=().
|
inlinenoexcept |
Definition at line 195 of file Engine.h.
References HookActivityTracker::s_active.
|
delete |
References Guard().
| bool HookActivityTracker::Guard::invoke |
Definition at line 187 of file Engine.h.
Referenced by Guard(), and HydraHookMainThread().