DescriptionThe main point here is in the adding of the scheduler dependency to LazyFileSystem which by default executes tasks immediately. It allows to control the execution of file system tasks by accumulating of pending ones and executing them one by one until the desired state is reached as well as check the state between tasks. It also gets rid of any threads what simplifies the debugging and eliminates a possibility for race conditions.
In order to simplify the creation of FilterEngine using custom scheduler there is a helper method
`FilterEnginePtr CreateFilterEngine(LazyFileSystem& fileSystem, const JsEnginePtr& jsEngine, const FilterEngine::CreationParameters& creationParams = FilterEngine::CreationParameters());`. All places where it's actually used are accordingly changed.
Patch Set 1 #
Total comments: 2
MessagesTotal messages: 2
|