Removed VIGEM_INVERTED_CALL_THREAD_COUNT macro

This commit is contained in:
Benjamin Höglinger-Stelzer
2019-04-25 17:02:02 +02:00
parent e4d313d8b1
commit 61b482a88a
2 changed files with 3 additions and 4 deletions

View File

@@ -9,12 +9,11 @@
#include "ViGEm/Client.h"
#include "Internal.h"
#define VIGEM_INVERTED_CALL_THREAD_COUNT 20
class NotificationRequestPool
{
HANDLE wait_handles_[VIGEM_INVERTED_CALL_THREAD_COUNT]{};
static const int thread_count = 20;
HANDLE wait_handles_[thread_count]{};
PVIGEM_CLIENT client_;
PVIGEM_TARGET target_;

View File

@@ -531,7 +531,7 @@ VIGEM_ERROR vigem_target_ds4_register_notification(
std::vector<std::thread> threadList;
for (int i = 0; i < VIGEM_INVERTED_CALL_THREAD_COUNT; i++)
for (int i = 0; i < 20 /* TODO: legacy, remove */; i++)
{
threadList.emplace_back(std::thread([](
PVIGEM_TARGET _Target,