6 #ifndef TURI_FILEIO_FILE_HANDLE_POOL_HPP 7 #define TURI_FILEIO_FILE_HANDLE_POOL_HPP 11 #include <core/parallel/mutex.hpp> 12 #include <core/storage/fileio/file_ownership_handle.hpp> 54 std::shared_ptr<file_ownership_handle>
register_file(
const std::string& file_name);
76 std::shared_ptr<file_ownership_handle> get_file_handle(
const std::string& file_name);
84 size_t num_file_registers = 0;
85 std::map<std::string, std::weak_ptr<file_ownership_handle>> m_file_handles;
bool mark_file_for_delete(std::string file_name)
bool unmark_file_for_delete(std::string file_name)
static file_handle_pool & get_instance()
std::shared_ptr< file_ownership_handle > register_file(const std::string &file_name)