diff options
Diffstat (limited to '3rdparty/bx/tests/thread_test.cpp')
-rw-r--r-- | 3rdparty/bx/tests/thread_test.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/3rdparty/bx/tests/thread_test.cpp b/3rdparty/bx/tests/thread_test.cpp index 80db9b5b969..b517eac069f 100644 --- a/3rdparty/bx/tests/thread_test.cpp +++ b/3rdparty/bx/tests/thread_test.cpp @@ -1,11 +1,13 @@ /* - * Copyright 2010-2018 Branimir Karadzic. All rights reserved. - * License: https://github.com/bkaradzic/bx#license-bsd-2-clause + * Copyright 2010-2022 Branimir Karadzic. All rights reserved. + * License: https://github.com/bkaradzic/bx/blob/master/LICENSE */ #include "test.h" #include <bx/thread.h> +#if BX_CONFIG_SUPPORTS_THREADING + bx::DefaultAllocator s_allocator; bx::MpScUnboundedBlockingQueue<void> s_mpsc(&s_allocator); @@ -42,7 +44,9 @@ TEST_CASE("Thread", "") REQUIRE(!th.isRunning() ); - th.init(threadExit0); + bool init = th.init(threadExit0, NULL, 0, NULL); + REQUIRE(init); + REQUIRE(th.isRunning() ); th.push(NULL); th.shutdown(); @@ -67,3 +71,5 @@ TEST_CASE("MpScUnboundedBlockingQueue", "") REQUIRE(result == 0x1389); } + +#endif // BX_CONFIG_SUPPORTS_THREADING |