12#ifndef ALICEO2_BASE_MTWORKERHOOKS_H
13#define ALICEO2_BASE_MTWORKERHOOKS_H
17#include <fairmq/FwdDecls.h>
33 std::function<std::unique_ptr<o2::data::PrimaryChunk>()>
fetchChunk;
typedef void(APIENTRYP PFNGLCULLFACEPROC)(GLenum mode)
std::function< void()> beginRunOnWorker
Called on a worker thread at the start of each run, after its user actions exist.
std::function< fair::mq::Channel *()> dataChannel
Returns the calling thread's channel to the hit merger.
static MTWorkerHooks & instance()
std::function< std::unique_ptr< o2::data::PrimaryChunk >()> fetchChunk
Returns the next chunk of primaries for the calling thread, or nullptr when there is no more work.
std::function< void()> stopWorker
Ends the event loop of the calling thread after the current event.
std::function< void()> beforeTransport
Called once on the master thread after initialisation and before the first transport.
std::function< TVirtualMCDecayer *()> makeDecayer
Creates the external decayer of the calling thread (empty if there is none)
std::function< void()> beginTrack
Called on a worker thread at the start of each track.