MCPcopy Create free account
hub / github.com/Tom94/tev / scheduleToMainThread

Function scheduleToMainThread

src/main.cpp:50–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48static atomic<bool> imageViewerIsReady = false;
49
50void scheduleToMainThread(const function<void()>& fun) {
51 if (imageViewerIsReady) {
52 sImageViewer->scheduleToUiThread(fun);
53 }
54}
55
56void redrawWindow() {
57 if (imageViewerIsReady) {

Callers 1

~ImageMethod · 0.85

Calls 1

scheduleToUiThreadMethod · 0.80

Tested by

no test coverage detected