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

Function Yield

libraries/lib-basic-ui/BasicUI.cpp:225–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225void Yield()
226{
227 do {
228 // Dispatch anything in the queue, added while there were no Services
229 {
230 auto guard = std::lock_guard{ sActionsMutex };
231 std::vector<Action> actions;
232 actions.swap(sActions);
233 for (auto &action : actions)
234 action();
235 }
236
237 // Dispatch according to Services, if present
238 if (auto p = Get())
239 p->DoYield();
240 }
241 // Re-test for more actions that might have been enqueued by actions just
242 // dispatched
243 while ( !sActions.empty() );
244}
245
246void ProcessIdle()
247{

Callers 11

ImportMethod · 0.85
ProcessMethod · 0.85
GetResultFunction · 0.85
UploadMixdownFunction · 0.85
GetResultFunction · 0.85
AllowClosingMethod · 0.85
RefreshMethod · 0.85
RefreshMethod · 0.85
ResetProgressMethod · 0.85
ShowHostInterfaceMethod · 0.85

Calls 4

GetFunction · 0.85
swapMethod · 0.45
DoYieldMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected