UpdateOutputCallbacks.cc
Go to the documentation of this file.
2 // vim: set sw=2 expandtab :
3 
5 #include "hep_concurrency/assert_only_one_thread.h"
6 
7 using namespace std;
8 
9 void
11 {
12  HEP_CONCURRENCY_ASSERT_ONLY_ONE_THREAD();
13  cet::for_all(callbacks_,
14  [&tables](auto const& callback) { callback(tables); });
15 }
16 
17 void
19 {
20  HEP_CONCURRENCY_ASSERT_ONLY_ONE_THREAD();
21  callbacks_.push_back(cb);
22 }
void registerCallback(ProductListUpdatedCallback cb)
std::function< void(ProductTables const &)> ProductListUpdatedCallback
STL namespace.
void invoke(ProductTables const &)
auto for_all(FwdCont &, Func)