mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-24 04:59:24 -06:00
actually fix thread blocking issue + changeRange fix in Histogram + unused function cleanup
This commit is contained in:
@@ -68,6 +68,8 @@ public:
|
||||
bool corrupted;
|
||||
};
|
||||
|
||||
using MemoryFileFuture = std::future<DownloadManager::MemoryFile>;
|
||||
|
||||
using DownloadProgressCallback = std::function<void(const FileFuture&)>;
|
||||
using DownloadFinishedCallback = std::function<void(const FileFuture&)>;
|
||||
|
||||
@@ -95,8 +97,7 @@ public:
|
||||
);
|
||||
|
||||
/**
|
||||
* Downloads a file to memory. This is done in a separate thread if the
|
||||
* returned future object is kept alive.
|
||||
* Downloads a file to memory. This is done in a separate thread.
|
||||
*
|
||||
* @param url the url you want to request a file from
|
||||
* @param successCallback optional callback that will be called when download is complete
|
||||
@@ -119,9 +120,6 @@ public:
|
||||
bool overrideFiles, AsyncDownloadFinishedCallback callback
|
||||
);
|
||||
|
||||
void getFileExtension(const std::string& url,
|
||||
RequestFinishedCallback finishedCallback = RequestFinishedCallback());
|
||||
|
||||
private:
|
||||
std::vector<std::string> _requestURL;
|
||||
int _applicationVersion;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* *
|
||||
* OpenSpace *
|
||||
* *
|
||||
* Copyright (c) 2015 *
|
||||
* Copyright (c) 2015-2016 *
|
||||
* *
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this *
|
||||
* software and associated documentation files (the "Software"), to deal in the Software *
|
||||
@@ -95,8 +95,8 @@ public:
|
||||
|
||||
/**
|
||||
* Sets a bin to a certain value directly. This method is similar
|
||||
* to add(float value, float repeat) but does the normalize the bin.
|
||||
* Instead it access the bin value directly. It also changes the bin value
|
||||
* to add(float value, float repeat) but does not normalize the bin.
|
||||
* Instead it access the bin value directly. It also replaces the bin value
|
||||
* instead of just adding upon it.
|
||||
*
|
||||
* @param bin The bin you want to change the value of
|
||||
|
||||
Reference in New Issue
Block a user