Skip to content

Instantly share code, notes, and snippets.

@kevingosse
Created May 18, 2020 12:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevingosse/b4ccef5196b91dd107d93073b9cbc5cc to your computer and use it in GitHub Desktop.
Save kevingosse/b4ccef5196b91dd107d93073b9cbc5cc to your computer and use it in GitHub Desktop.
__forceinline static bool IsEnabled(GCEventProvider provider, GCEventKeyword keyword, GCEventLevel level)
{
assert(level >= GCEventLevel_None && level < GCEventLevel_Max);
size_t index = static_cast<size_t>(provider);
return (enabledLevels[index].LoadWithoutBarrier() >= level)
&& (enabledKeywords[index].LoadWithoutBarrier() & keyword);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment