MCPcopy Create free account
hub / github.com/audacity/audacity / OnAppClosing

Function OnAppClosing

libraries/lib-utility/AppEvents.cpp:57–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void OnAppClosing(std::function<void()> callback)
58{
59 assert(callback);
60
61 if (!callback)
62 return;
63
64 auto& handlers = GetEventHandlers();
65
66 if (handlers.AppClosingCalled)
67 callback();
68 else
69 handlers.appClosing.push_back(std::move(callback));
70}
71
72Observer::Subscription OnAppIdle(std::function<void()> callback)
73{

Callers 1

HousekeeperMethod · 0.85

Calls 3

callbackFunction · 0.85
moveFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected