Make portable
This commit is contained in:
@@ -18,14 +18,14 @@ public:
|
||||
virtual ~CAutoThread();
|
||||
|
||||
private:
|
||||
bool _stopRequested;
|
||||
std::unique_ptr<CSiaCurl> _siaCurl;
|
||||
CSiaDriveConfig* _siaDriveConfig;
|
||||
#ifdef _WIN32
|
||||
HANDLE _stopEvent;
|
||||
#endif
|
||||
std::function<void(const CSiaCurl&, CSiaDriveConfig*)> _AutoThreadCallback;
|
||||
std::unique_ptr<std::thread> _thread;
|
||||
std::mutex _startStopMutex;
|
||||
std::function<void(const CSiaCurl&, CSiaDriveConfig*)> _AutoThreadCallback;
|
||||
std::mutex _stopMutex;
|
||||
std::condition_variable _stopEvent;
|
||||
|
||||
protected:
|
||||
virtual void AutoThreadCallback(const CSiaCurl& siaCurl, CSiaDriveConfig* siaDriveConfig);
|
||||
|
Reference in New Issue
Block a user