Asset work in progress

This commit is contained in:
Emil Axelsson
2017-12-15 13:21:10 +01:00
parent 2f2bba5094
commit 75cf6dcf71
27 changed files with 287 additions and 107 deletions

View File

@@ -34,7 +34,12 @@ namespace openspace {
class HttpSynchronization : public ResourceSynchronization {
public:
HttpSynchronization(const ghoul::Dictionary& dict);
HttpSynchronization(
const ghoul::Dictionary& dict,
const std::string& synchronizationRoot,
const std::vector<std::string>& synchronizationRepositories
);
virtual ~HttpSynchronization();
static documentation::Documentation Documentation();
@@ -54,9 +59,9 @@ private:
bool hasSyncFile();
void createSyncFile();
std::atomic_bool _nTotalBytesKnown;
std::atomic_size_t _nTotalBytes;
std::atomic_size_t _nSynchronizedBytes;
std::atomic_bool _nTotalBytesKnown = false;
std::atomic_size_t _nTotalBytes = 0;
std::atomic_size_t _nSynchronizedBytes = 0;
std::atomic_bool _shouldCancel = false;
std::string _identifier;