Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
FIFOQueue.h
Go to the documentation of this file.
1/*
2 * Project: RooFit
3 * Authors:
4 * PB, Patrick Bos, Netherlands eScience Center, p.bos@esciencecenter.nl
5 * IP, Inti Pelupessy, Netherlands eScience Center, i.pelupessy@esciencecenter.nl
6 *
7 * Copyright (c) 2022, CERN
8 *
9 * Redistribution and use in source and binary forms,
10 * with or without modification, are permitted according to the terms
11 * listed in LICENSE (http://roofit.sourceforge.net/license.txt)
12 */
13#ifndef ROOT_ROOFIT_MultiProcess_FIFOQueue
14#define ROOT_ROOFIT_MultiProcess_FIFOQueue
15
17#include <queue>
18
19namespace RooFit {
20namespace MultiProcess {
21
22class FIFOQueue : public Queue {
23public:
24 bool pop(JobTask &job_task) override;
25 void add(JobTask job_task) override;
26
27private:
28 std::queue<JobTask> queue_;
29};
30
31} // namespace MultiProcess
32} // namespace RooFit
33
34#endif // ROOT_ROOFIT_MultiProcess_FIFOQueue
A Queue with simple FIFO behavior.
Definition FIFOQueue.h:22
void add(JobTask job_task) override
See Queue::add.
Definition FIFOQueue.cxx:38
std::queue< JobTask > queue_
Definition FIFOQueue.h:28
bool pop(JobTask &job_task) override
See Queue::pop.
Definition FIFOQueue.cxx:26
Keeps a queue of tasks for workers and manages the queue process through its event loop.
Definition Queue.h:22
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
Definition JSONIO.h:26
combined job_object, state and task identifier type
Definition types.h:25