Trying to generalize and tidy up this mess

This commit is contained in:
Benjamin Höglinger-Stelzer
2019-05-28 15:34:30 +02:00
parent 61b482a88a
commit 88a325f520
3 changed files with 7 additions and 7 deletions

View File

@@ -8,7 +8,7 @@ void NotificationRequestPool::strand_dispatch_worker() const
NotificationRequestPool::NotificationRequestPool(
PVIGEM_CLIENT client,
PVIGEM_TARGET target,
PFN_VIGEM_X360_NOTIFICATION callback
FARPROC callback
) :
client_(client),
target_(target),
@@ -44,7 +44,7 @@ NotificationRequestPool::NotificationRequestPool(
request->request_async();
}
NotificationRequestPool::~NotificationRequestPool()
NotificationRequestPool::~NotificationRequestPool() noexcept(false)
{
for (auto& wait_handle : wait_handles_)
CloseHandle(wait_handle);
@@ -94,7 +94,7 @@ void NotificationRequestPool::operator()()
PVIGEM_TARGET,
UCHAR,
UCHAR,
UCHAR)> pfn = callback_;
UCHAR)> pfn = PFN_VIGEM_X360_NOTIFICATION(callback_);
// submit callback for async yet ordered invocation
strand.post(boost::bind(pfn,