working multithreading
finally managed to multithread folder scanner and rtp. it may still have some bugs. but it works
This commit is contained in:
@@ -1,7 +1,18 @@
|
||||
#pragma once
|
||||
#include <string>
|
||||
void ListFilesRecursive(const std::string& directory,int thread_id);
|
||||
int scan_hash(const std::string& filename, const std::string& searchString);
|
||||
int scan_hash(const char* hash);
|
||||
int scan_hash(const char* hash);
|
||||
void action_scanfile(const char* filepath);
|
||||
#include <unordered_map>
|
||||
#include <Windows.h>
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <cctype> // for std::isxdigit
|
||||
#include <iostream>
|
||||
#include <future>
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
void scan_folder_recursive(const std::string& directory);
|
||||
void action_scanfile(const char* filepath);
|
||||
//void action_scanfile_t(const char* filepath);
|
||||
void action_scanfile_t(const std::string& filepath_);
|
||||
void initialize(const std::string& folderPath);
|
||||
void cleanup();
|
||||
Reference in New Issue
Block a user