fsearch: add possible semaphore limiting the concurrenct open requests
All threads resolved!
All threads resolved!
Compare changes
+ 12
− 2
@@ -29,6 +29,7 @@ namespace po = boost::program_options;
@@ -38,10 +39,12 @@ static emper::lib::ShardedFileBuffer* outBuf;
@@ -55,7 +58,7 @@ void search(const std::string& path) {
@@ -94,6 +97,11 @@ static auto fssearch(const po::variables_map& vm) -> int {
@@ -125,6 +133,7 @@ static auto fssearch(const po::variables_map& vm) -> int {
@@ -144,6 +153,7 @@ auto main(int argc, char* argv[]) -> int {