The Gaudi Framework  v33r0 (d5ea422b)
IScheduler.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #ifndef GAUDIKERNEL_ISCHEDULER_H
12 #define GAUDIKERNEL_ISCHEDULER_H
13 
14 // Framework include files
16 #include "GaudiKernel/IInterface.h"
17 
18 // C++ include files
19 #include <functional>
20 #include <vector>
21 
30 class GAUDI_API IScheduler : virtual public IInterface {
31 public:
34 
36  virtual StatusCode pushNewEvent( EventContext* eventContext ) = 0;
37 
40  virtual StatusCode pushNewEvents( std::vector<EventContext*>& eventContexts ) = 0;
41 
43  virtual StatusCode popFinishedEvent( EventContext*& eventContext ) = 0;
44 
46  virtual StatusCode tryPopFinishedEvent( EventContext*& eventContext ) = 0;
47 
49  virtual unsigned int freeSlots() = 0;
50 
51  virtual void dumpState(){};
52 
54  virtual StatusCode scheduleEventView( const EventContext* sourceContext, const std::string& nodeName,
55  std::unique_ptr<EventContext> viewContext ) = 0;
56 };
57 #endif
virtual void dumpState()
Definition: IScheduler.h:51
This class represents an entry point to all the event specific data.
Definition: EventContext.h:34
STL class.
General interface for algorithm scheduler.
Definition: IScheduler.h:30
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:61
Definition of the basic interface.
Definition: IInterface.h:254
#define DeclareInterfaceID(iface, major, minor)
Macro to declare the interface ID when using the new mechanism of extending and implementing interfac...
Definition: IInterface.h:23
STL class.
#define GAUDI_API
Definition: Kernel.h:81