FAsyncFileHasher::FAsyncFileHasher

Constructor

Unreal Engine C++ API Reference > Developer > DirectoryWatcher > FAsyncFileHasher

References

   
Module DirectoryWatcher
Header /Engine/Source/Developer/DirectoryWatcher/Public/FileCache.h
Include #include "FileCache.h"
Source /Engine/Source/Developer/DirectoryWatcher/Private/FileCache.cpp
FAsyncFileHasher
(
    [TArray](API\Runtime\Core\Containers\TArray)< [FFilenameAndHash](API\Developer\DirectoryWatcher\FFilenameAndHash) > InFilesThatNeedHashing
)

Remarks

Constructor

Threading strategy for FAsyncFileHasher: The task is constructed on the main thread with its Data. The array 'Data' never changes size. The task thread moves along setting file hashes, while the main thread trails behind accessing the completed entries. We should thus never have 2 threads accessing the same memory, except for the atomic 'CurrentIndex'


Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library