-
- Downloads
implement a sharded file buffer
Each worker thread has it own stringstream per ShardedFileBuffer. All streams are joined and flushed to the file when a ShardedFileBuffer is destructed. Flushing a ShardedFileBuffer is not thread-safe and must not be called concurrently to any modifications to the ShardedFileBuffer. Use a ShardedFileBuffer to accumulate and print all paths during fsearch.
Showing
- apps/fsearch/fsearch.cpp 10 additions, 8 deletionsapps/fsearch/fsearch.cpp
- emper/Runtime.cpp 5 additions, 0 deletionsemper/Runtime.cpp
- emper/Runtime.hpp 4 additions, 0 deletionsemper/Runtime.hpp
- emper/lib/ShardedFileBuffer.cpp 94 additions, 0 deletionsemper/lib/ShardedFileBuffer.cpp
- emper/lib/ShardedFileBuffer.hpp 82 additions, 0 deletionsemper/lib/ShardedFileBuffer.hpp
- emper/lib/meson.build 1 addition, 0 deletionsemper/lib/meson.build
Loading
Please register or sign in to comment