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

Function readSettingFromUiThread

src/gui2/datastore.cc:199–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197
198template <typename T>
199static T readSettingFromUiThread(
200 const std::string& setting, const T defaultValue)
201{
202 std::function<T()> cb = [&]()
203 {
204 return readSetting<T>(setting, defaultValue);
205 };
206 return wtRunSynchronouslyOnUiThread(cb);
207}
208
209void Datastore::init()
210{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected