HydraHook
Direct3D and Core Audio hooking library for Windows
Loading...
Searching...
No Matches
HookActivityTracker::Guard Struct Reference

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

Detailed Description

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).

Definition at line 185 of file Engine.h.

Constructor & Destructor Documentation

◆ Guard() [1/2]

HookActivityTracker::Guard::Guard ( )
inlinenoexcept

Definition at line 189 of file Engine.h.

References invoke, HookActivityTracker::s_active, and HookActivityTracker::s_shutting_down.

Referenced by Guard(), and operator=().

◆ ~Guard()

HookActivityTracker::Guard::~Guard ( )
inlinenoexcept

Definition at line 195 of file Engine.h.

References HookActivityTracker::s_active.

◆ Guard() [2/2]

HookActivityTracker::Guard::Guard ( const Guard & )
delete

References Guard().

Member Function Documentation

◆ operator=()

Guard & HookActivityTracker::Guard::operator= ( const Guard & )
delete

References Guard().

Member Data Documentation

◆ invoke

bool HookActivityTracker::Guard::invoke

Definition at line 187 of file Engine.h.

Referenced by Guard(), and HydraHookMainThread().


The documentation for this struct was generated from the following file: