«
Previous
|
Next
»
Revision dbbd2afa
Added by david.sorber over 2 years ago
- ID dbbd2afaf6410ef19291da7d0d18b16407571023
- Parent 4fd46efa
| src/CopyManager.h | ||
|---|---|---|
|
*/
|
||
|
void run();
|
||
|
|
||
|
inline void terminate()
|
||
|
{
|
||
|
// TODO: something else???
|
||
|
m_terminate = true;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Wait for the main thread to complete. Should be called after run().
|
||
|
* @return
|
||
| ... | ... | |
|
return m_running;
|
||
|
}
|
||
|
|
||
|
inline bool iterationError() const
|
||
|
{
|
||
|
return m_iterationError;
|
||
|
}
|
||
|
|
||
|
inline uint64_t getTotalEntries()
|
||
|
{
|
||
|
return m_totalEntries;
|
||
| ... | ... | |
|
ProtectedQueue<sfs::directory_entry> m_entryQueue;
|
||
|
std::atomic_bool m_terminate;
|
||
|
std::atomic_bool m_running;
|
||
|
std::atomic_bool m_iterationError;
|
||
|
|
||
|
std::thread* p_mainThread;
|
||
|
std::vector<std::thread*> m_copyThreads;
|
||
WIP; adding options to preserve file/directory permissions, owner, and
group.