LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
LegacyModule.cc
Go to the documentation of this file.
3 
4 namespace art::detail {
5  LegacyModule::LegacyModule(std::string const& module_label)
6  : EngineCreator{module_label, ScheduleID::first()}
7  {
9  }
10 
12  LegacyModule::scheduleID() const noexcept
13  {
14  return scheduleID_.load();
15  }
16 
17  void
19  {
20  scheduleID_ = sid;
21  }
22 
24  LegacyModule& mod,
25  ScheduleID const sid) noexcept
26  : mod_{mod}
27  {
28  mod_.setScheduleID(sid);
29  }
30 
32  {
33  mod_.setScheduleID(ScheduleID{});
34  }
35 }
static constexpr ScheduleID first()
Definition: ScheduleID.h:50
LegacyModule(std::string const &module_label)
Definition: LegacyModule.cc:5
SharedResource_t const LegacyResource
ScheduleIDSentry(LegacyModule &mod, ScheduleID const sid) noexcept
Definition: LegacyModule.cc:23
ScheduleID scheduleID() const noexcept
Definition: LegacyModule.cc:12
std::atomic< ScheduleID > scheduleID_
Definition: LegacyModule.h:32
void serialize(T const &...)
void setScheduleID(ScheduleID const sid) noexcept
Definition: LegacyModule.cc:18