blob: b0177637942745d7caced8ef47864089cf79d9cb (
plain) (
blame)
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
33
34
35
36
37
38
39
40
|
#pragma once
#include "mpsc_read_as_filled.h"
#include "mpsc_htswap.h"
#include "mpsc_vinfarr_obstructive.h"
#include "mpsc_intrusive_unordered.h"
#include "mpmc_unordered_ring.h"
struct TBasicHTSwap: public NThreading::THTSwapQueue<> {
};
struct TBasicReadAsFilled: public NThreading::TReadAsFilledQueue<> {
};
struct TBasicObstructiveConsumer
: public NThreading::TObstructiveConsumerQueue<> {
};
struct TBasicMPSCIntrusiveUnordered
: public NThreading::TMPSCIntrusiveUnordered {
};
struct TIntrusiveLink: public NThreading::TIntrusiveNode {
};
struct TMPMCUnorderedRing: public NThreading::TMPMCUnorderedRing {
TMPMCUnorderedRing()
: NThreading::TMPMCUnorderedRing(10000000)
{
}
};
#define REGISTER_TESTS_FOR_ALL_ORDERED_QUEUES(TestTemplate) \
UNIT_TEST_SUITE_REGISTRATION(TestTemplate<TBasicHTSwap>); \
UNIT_TEST_SUITE_REGISTRATION(TestTemplate<TBasicReadAsFilled>); \
UNIT_TEST_SUITE_REGISTRATION(TestTemplate<TBasicObstructiveConsumer>)
#define REGISTER_TESTS_FOR_ALL_UNORDERED_QUEUES(TestTemplate) \
UNIT_TEST_SUITE_REGISTRATION(TestTemplate<TBasicMPSCIntrusiveUnordered>); \
UNIT_TEST_SUITE_REGISTRATION(TestTemplate<TMPMCUnorderedRing>);
|