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

Method EnqueueAction

libraries/lib-exceptions/AudacityException.cpp:22–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22void AudacityException::EnqueueAction(
23 std::exception_ptr pException,
24 std::function<void(AudacityException*)> delayedHandler)
25{
26 BasicUI::CallAfter( [
27 pException = std::move(pException), delayedHandler = std::move(delayedHandler)
28 ] {
29 try {
30 std::rethrow_exception(pException);
31 }
32 catch( AudacityException &e )
33 { delayedHandler( &e ); }
34 } );
35}
36
37wxAtomicInt sOutstandingMessages {};
38

Callers

nothing calls this directly

Calls 2

CallAfterFunction · 0.85
moveFunction · 0.85

Tested by

no test coverage detected