Status Wallet::sync(bool &dirty) { ABC_CHECK(syncRepo(syncDir(), syncKey_, dirty)); if (dirty) { std::lock_guard<std::mutex> lock(mutex_); ABC_CHECK(loadSync()); } return Status(); }
fontFactory::FontFuture fontFactory::loadAsync ( std::string const& fname, std::string const& textureFname ) { return mThreadPool.enqueue([=]() { return loadSync(fname, textureFname); } ); }