MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / wtRunSynchronouslyOnUiThread

Function wtRunSynchronouslyOnUiThread

src/gui2/datastore.cc:143–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141
142template <typename T>
143T wtRunSynchronouslyOnUiThread(std::function<T()> callback)
144{
145 T result;
146 hex::TaskManager::doLaterOnce(
147 [&]()
148 {
149 result = callback();
150 uiThreadSemaphore.release();
151 });
152 uiThreadSemaphore.acquire();
153 return result;
154}
155
156template <>
157void wtRunSynchronouslyOnUiThread(std::function<void()> callback)

Callers 5

readSettingFromUiThreadFunction · 0.85
beginReadMethod · 0.85
beginWriteMethod · 0.85
readImageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected