1
0

Upload manager changes

This commit is contained in:
Scott E. Graves
2017-02-20 15:38:18 -06:00
parent 0c90d3d116
commit 5db3f618bc
4 changed files with 28 additions and 5 deletions

View File

@@ -12,12 +12,12 @@ using namespace Sia::Api::Dokan;
class DokanImpl
{
private:
struct OpenFileInfo
typedef struct
{
String SiaPath;
String CacheFilePath;
bool ReadOnly;
};
} OpenFileInfo;
private:
static std::mutex _dokanMutex;
@@ -511,6 +511,7 @@ void CSiaDokanDrive::Mount(const wchar_t& driveLetter, const String& cacheLocati
void CSiaDokanDrive::Unmount(const bool& clearCache)
{
std::lock_guard<std::mutex> l(DokanImpl::GetMutex());
// TODO When files are open, need to prompt and prevent shutdown?
DokanImpl::Unmount();
}