vitrio 0.3.1
High-throughput image I/O for Cryo-Electron Microscopy (CryoEM)
Loading...
Searching...
No Matches
file_transfer_pool.hpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2
3#pragma once
4
5#include <vitrio/concurrency/executor.hpp>
6#include <vitrio/export.hpp>
7
8#include <memory>
9
10namespace vitrio
11{
12
30{
31public:
36 class implementation;
37
46 VITRIO_API
47 explicit file_transfer_pool(std::shared_ptr<executor> tasks);
48
49 file_transfer_pool(const file_transfer_pool &other) = delete;
50 file_transfer_pool(file_transfer_pool &&other) = delete;
51
52 VITRIO_API
54
55 file_transfer_pool& operator=(const file_transfer_pool &other) = delete;
56 file_transfer_pool& operator=(file_transfer_pool &&other) = delete;
57
65 const implementation& get_implementation() const noexcept;
66
67private:
68 std::unique_ptr<implementation> m_implementation;
69};
70
71} // namespace vitrio
file_transfer_pool(std::shared_ptr< executor > tasks)
Start the threads.
const implementation & get_implementation() const noexcept
Get what the library carries out the transfers with.