Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:49:29

0001 #ifndef HeterogeneousCore_SonicCore_SonicDispatcher
0002 #define HeterogeneousCore_SonicCore_SonicDispatcher
0003 
0004 #include "FWCore/Concurrency/interface/WaitingTaskWithArenaHolder.h"
0005 
0006 class SonicClientBase;
0007 
0008 class SonicDispatcher {
0009 public:
0010   //constructor
0011   SonicDispatcher(SonicClientBase* client) : client_(client) {}
0012 
0013   //destructor
0014   virtual ~SonicDispatcher() = default;
0015 
0016   //main operation
0017   virtual void dispatch(edm::WaitingTaskWithArenaHolder holder);
0018 
0019   //alternate operation when ExternalWork is not used
0020   virtual void dispatch();
0021 
0022 protected:
0023   SonicClientBase* client_;
0024 };
0025 
0026 #endif