Fix test compilation on linux

This commit is contained in:
baldurk
2020-08-28 19:06:06 +01:00
parent 482bdbae6f
commit 0e5b08d0e1
+7 -2
View File
@@ -26,6 +26,7 @@
#include <chrono>
#include <condition_variable>
#include <mutex>
#include <thread>
#include "3rdparty/fmt/core.h"
#include "vk_test.h"
@@ -260,20 +261,24 @@ void main()
std::mutex lock;
std::condition_variable cv;
std::atomic_bool kill = false, run = false;
std::atomic_bool kill, run;
};
ThreadData threadData[threadCount];
std::atomic_int threadsDone = 0;
std::atomic_int threadsDone;
std::mutex doneLock;
std::condition_variable doneCV;
threadsDone = 0;
for(size_t t = 0; t < threadCount; t++)
{
CHECK_VKR(vkCreateCommandPool(
device, vkh::CommandPoolCreateInfo(VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT), NULL,
&threadData[t].cmdPool));
threadData[t].kill = threadData[t].run = false;
for(size_t r = 0; r < ringSize; r++)
{
CHECK_VKR(vkCreateDescriptorPool(