This is an archive of the discontinued LLVM Phabricator instance.

[WIP][FileCollector] FileCollector::Mutex
ClosedPublic

Authored by jkorous on Apr 27 2020, 12:47 PM.

Details

Summary

IIUC we should synchronize read and write access to VFSWriter.

It almost feels like we might want to keep FileCollector thread-unsafe and move the responsibility (and the mutex) to client code.

Diff Detail

Event Timeline

jkorous created this revision.Apr 27 2020, 12:47 PM
JDevlieghere added inline comments.Apr 27 2020, 1:36 PM
llvm/include/llvm/Support/FileCollector.h
72

Yep. How about "Synchronizes the file mapping."?

JDevlieghere accepted this revision.Apr 28 2020, 10:21 AM
This revision is now accepted and ready to land.Apr 28 2020, 10:21 AM
This revision was automatically updated to reflect the committed changes.