You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
magic statics have some overhead that some components, dlls that are loaded in many processes, what to avoid.
using wil::init_once avoids that, at the cost of more complicated code. is that your understanding?
wil/include/wil/Tracelogging.h
Lines 188 to 204 in eb9eb35
According to https://learn.microsoft.com/en-us/cpp/cpp/storage-classes-cpp?view=msvc-170, function-local "magic statics" are fully supported.
Instead of defining a custom static_lazy type, use the built-in support.
Instance()
method:The text was updated successfully, but these errors were encountered: