summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bx/tests/queue_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bx/tests/queue_test.cpp')
-rw-r--r--3rdparty/bx/tests/queue_test.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/3rdparty/bx/tests/queue_test.cpp b/3rdparty/bx/tests/queue_test.cpp
index 48fd270a274..81a2b44e676 100644
--- a/3rdparty/bx/tests/queue_test.cpp
+++ b/3rdparty/bx/tests/queue_test.cpp
@@ -21,14 +21,16 @@ uintptr_t ptrToBits(void* _ptr)
TEST_CASE("SpSc", "")
{
- bx::SpScUnboundedQueue queue;
+ bx::DefaultAllocator allocator;
+ bx::SpScUnboundedQueue queue(&allocator);
queue.push(bitsToPtr(0xdeadbeef) );
REQUIRE(0xdeadbeef == ptrToBits(queue.pop() ) );
}
TEST_CASE("MpSc", "")
{
- bx::MpScUnboundedQueueT<void> queue;
+ bx::DefaultAllocator allocator;
+ bx::MpScUnboundedQueueT<void> queue(&allocator);
queue.push(bitsToPtr(0xdeadbeef) );
REQUIRE(0xdeadbeef == ptrToBits(queue.pop() ) );
}