-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathQueue.h
More file actions
32 lines (23 loc) · 821 Bytes
/
Queue.h
File metadata and controls
32 lines (23 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
// Created by Vetle Wegner Ingeberg on 06/04/2022.
//
#ifndef QUEUE_H
#define QUEUE_H
#include <Format/entry.h>
#include <Format/event.h>
#include <Format/xiaformat.h>
#include "SPSCQueue.h"
#include "SPMCQueue.h"
#include <blockingconcurrentqueue.h>
//#define SIZE 16384
#define SIZE 2048
//#define SIZE 32
namespace Task {
using XIAQueue_t = SPSCBlockingQueue<const XIA_base_t *, SIZE>;
using EntryQueue_t = SPSCBlockingQueue<Entry_t, SIZE>;
using EventQueue_t = SPSCBlockingQueue<std::vector<Entry_t>, SIZE>;
using MCEventQueue_t = SPSCBlockingQueue<std::vector<Entry_t>, SIZE>;
using TEventQueue_t = SPSCBlockingQueue<std::pair<std::vector<Entry_t>, int>, SIZE>;
using MTEventQueue_t = moodycamel::BlockingConcurrentQueue<std::pair<std::vector<Entry_t>, int>>;
}
#endif // QUEUE_H