MCPcopy Create free account
hub / github.com/Tracktion/choc / getSharedMessageWindow

Function getSharedMessageWindow

choc/gui/choc_MessageLoop.h:430–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

428};
429
430inline LockedMessageWindow getSharedMessageWindow (bool recreateIfWrongThread = false)
431{
432 static std::unique_ptr<MessageWindow> window;
433 static std::mutex lock;
434
435 std::unique_lock<std::mutex> l (lock);
436
437 if (window == nullptr || (recreateIfWrongThread && window->threadID != GetCurrentThreadId()))
438 window = std::make_unique<MessageWindow>();
439
440 return LockedMessageWindow { *window, std::move (l) };
441}
442
443inline void initialise()
444{

Callers 5

initialiseFunction · 0.85
postMessageFunction · 0.85
callerIsOnMessageThreadFunction · 0.85
PimplMethod · 0.85
killTimerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected