You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This change reworks the AssetProcessor's FileWatcher so that it only uses one thread. This is motivated by getting better support for inotify on Linux. The previous architecture required calling `inotify_init` once for each directory that was being watched, and using separate inotify instances for each watched tree. In addition, having separate threads per watched tree is not necessary, and just consumes system resources. Each platform supports watching multiple directories with the same platform-specific watcher API, so each platform has been updated accordingly. The interface to the FileWatcher class is greatly simplified. Previously, it supported client-supplied filtering of the paths that would generate notifications. This was done by subclassing `FolderWatchBase` and implementing `OnFileChange`. However, only one filter was ever used, so that filter is now hard-coded in the FileWatcher class, and the classes driving the old filtering mechanism are removed. Users of the interface now have a much easier time, they just call `AddFolderWatch` with the path to watch, and only have to connect to one set of signals, instead of separate signals per watched directory. Signed-off-by: Chris Burel <burelc@amazon.com> |
4 years ago | |
|---|---|---|
| .. | ||
| AssetProcessingStateDataUnitTests.cpp | 4 years ago | |
| AssetProcessingStateDataUnitTests.h | 4 years ago | |
| AssetProcessorManagerUnitTests.cpp | 4 years ago | |
| AssetProcessorManagerUnitTests.h | 4 years ago | |
| AssetProcessorServerUnitTests.cpp | 4 years ago | |
| AssetProcessorServerUnitTests.h | 4 years ago | |
| AssetRequestHandlerUnitTests.cpp | 4 years ago | |
| AssetRequestHandlerUnitTests.h | 4 years ago | |
| AssetScannerUnitTests.cpp | 4 years ago | |
| AssetScannerUnitTests.h | 4 years ago | |
| BuilderSDKUnitTests.cpp | 4 years ago | |
| ConnectionManagerUnitTests.cpp | 4 years ago | |
| ConnectionManagerUnitTests.h | 4 years ago | |
| ConnectionUnitTests.cpp | 4 years ago | |
| ConnectionUnitTests.h | 4 years ago | |
| FileWatcherUnitTests.cpp | 4 years ago | |
| FileWatcherUnitTests.h | 4 years ago | |
| MockApplicationManager.cpp | 4 years ago | |
| MockApplicationManager.h | 4 years ago | |
| MockConnectionHandler.h | 4 years ago | |
| PlatformConfigurationUnitTests.cpp | 4 years ago | |
| PlatformConfigurationUnitTests.h | 4 years ago | |
| RCcontrollerUnitTests.cpp | 4 years ago | |
| RCcontrollerUnitTests.h | 4 years ago | |
| UnitTestRunner.cpp | 4 years ago | |
| UnitTestRunner.h | 4 years ago | |
| UtilitiesUnitTests.cpp | 4 years ago | |
| UtilitiesUnitTests.h | 4 years ago | |