Loading [MathJax]/extensions/tex2jax.js
Antares Simulator
Power System Simulator
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Modules Pages Concepts
FSWalker::WalkerThread Class Referencefinal

Public Types

enum  { maxTicks = 7000 , maxFilesPerJob = 100 , maxJobsInQueue = 2048 , maxJobsInQueueReducedPressure = 1024 }
 

Public Member Functions

 WalkerThread (Statistics &stats)
 
void dispatchJob (IJob::Ptr job) const
 
void run ()
 

Public Attributes

String directory
 Directories to walk through.
 
Statistics statistics
 Statistics.
 
EventsRegistry events
 Events.
 
String logPrefix
 Log prefix.
 

Protected Member Functions

bool onDirectoryEnter (const String &path)
 
void onDirectoryLeave ()
 
void releaseResources ()
 
void walk (const String &path)
 
bool triggerFileEvent (const String &filename, const String &parent, int64_t modified, uint64_t size)
 
void waitForAllJobs () const
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
maxTicks 

Maximum number of ticks between each thread state check.

maxFilesPerJob 

Maximum number of files per job.

maxJobsInQueue 

Maximum number of jobs in queues, to avoid override.

maxJobsInQueueReducedPressure 

The upper limit of jobs in queue, after the limit has been reached.


The documentation for this class was generated from the following file: