FAsyncFileHasher::FAsyncFileHasher

Constructor

Windows
MacOS
Linux

References

Module

DirectoryWatcher

Header

/Engine/Source/Developer/DirectoryWatcher/Public/FileCache.h

Include

#include "FileCache.h"

Source

/Engine/Source/Developer/DirectoryWatcher/Private/FileCache.cpp

Syntax

FAsyncFileHasher
(
    TArray< 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'

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss