aboutsummaryrefslogtreecommitdiff
path: root/zencore/mpscqueue.cpp
blob: 8b89ac31aba19a5813b73e3ee5653e0b2d5c945d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright Epic Games, Inc. All Rights Reserved.

#include <zencore/mpscqueue.h>

#include <zencore/testing.h>

namespace zen {

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

void
mpscqueue_forcelink()
{
}

}  // namespace zen