aboutsummaryrefslogtreecommitdiff
path: root/zencore/mpscqueue.cpp
blob: a9da3a48157c5bafeb54e678b2eb30624ee0fba3 (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
// Copyright Epic Games, Inc. All Rights Reserved.

#include <zencore/mpscqueue.h>

#include <zencore/testing.h>
#include <string>

namespace zen {

#if ZEN_WITH_TESTS
TEST_CASE("mpsc")
{
	MpscQueue<std::string> Queue;
	Queue.Enqueue("hello");
	std::optional<std::string> Value = Queue.Dequeue();
	CHECK_EQ(Value, "hello");
}

void
mpscqueue_forcelink()
{
}
#endif

}  // namespace zen