Ejemplo n.º 1
0
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();
}
Ejemplo n.º 2
0
fontFactory::FontFuture fontFactory::loadAsync ( std::string const& fname, std::string const& textureFname )
{
  return mThreadPool.enqueue([=]() { return loadSync(fname, textureFname); } );
}