forked from cms-patatrack/pixeltrack-standalone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStreamSchedule.h
49 lines (40 loc) · 1.26 KB
/
StreamSchedule.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef StreamSchedule_h
#define StreamSchedule_h
#include <memory>
#include <string>
#include <vector>
#include "Framework/ProductRegistry.h"
#include "Framework/WaitingTaskHolder.h"
namespace edmplugin {
class PluginManager;
}
namespace edm {
class EventSetup;
class Source;
class Worker;
// Schedule of modules per stream (concurrent event)
class StreamSchedule {
public:
// copy ProductRegistry per stream
explicit StreamSchedule(ProductRegistry reg,
edmplugin::PluginManager& pluginManager,
Source* source,
EventSetup const* eventSetup,
int streamId,
std::vector<std::string> const& path);
~StreamSchedule();
StreamSchedule(StreamSchedule const&) = delete;
StreamSchedule& operator=(StreamSchedule const&) = delete;
StreamSchedule(StreamSchedule&&);
StreamSchedule& operator=(StreamSchedule&&);
void runToCompletionAsync(WaitingTaskHolder h);
private:
void processOneEventAsync(WaitingTaskHolder h);
ProductRegistry registry_;
Source* source_;
EventSetup const* eventSetup_;
std::vector<std::unique_ptr<Worker>> path_;
int streamId_;
};
} // namespace edm
#endif