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
10
namespace
vitrio
11
{
12
29
class
file_transfer_pool
final
30
{
31
public
:
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
53
~file_transfer_pool
();
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
67
private:
68
std::unique_ptr<implementation> m_implementation;
69
};
70
71
}
// namespace vitrio
vitrio::file_transfer_pool::file_transfer_pool
file_transfer_pool(std::shared_ptr< executor > tasks)
Start the threads.
vitrio::file_transfer_pool::get_implementation
const implementation & get_implementation() const noexcept
Get what the library carries out the transfers with.
vitrio
file_transfer_pool.hpp
Generated by
1.15.0