The previous async method's are being updated to the ASyncDBConnection class. Connecting is working.

This commit is contained in:
Eelke Klein 2017-01-06 07:23:40 +01:00
parent 2d420c0525
commit fce51a7b7e
7 changed files with 363 additions and 215 deletions

View file

@ -8,7 +8,7 @@ void TSQueue::add(t_Callable callable)
{
std::lock_guard<std::mutex> g(m);
futureQueue.push_back(std::move(callable));
newData.Set();
newData.set();
}
bool TSQueue::empty()
@ -23,12 +23,12 @@ TSQueue::t_Callable TSQueue::pop()
auto f = std::move(futureQueue.front());
futureQueue.pop_front();
if (futureQueue.empty()) {
newData.Reset();
newData.reset();
}
return f;
}
HANDLE TSQueue::getNewDataEventHandle()
{
return newData.GetHandle();
return newData.handle();
}