cleanup of commented out code
This commit is contained in:
parent
83332842fc
commit
81c4449d31
2 changed files with 0 additions and 9 deletions
|
|
@ -1,14 +1,12 @@
|
|||
#include "tsqueue.h"
|
||||
|
||||
TSQueue::TSQueue()
|
||||
// : newData(Win32Event::Reset::Manual, Win32Event::Initial::Clear)
|
||||
{}
|
||||
|
||||
void TSQueue::add(t_Callable callable)
|
||||
{
|
||||
std::lock_guard<std::mutex> g(m);
|
||||
futureQueue.push_back(std::move(callable));
|
||||
// newData.set();
|
||||
}
|
||||
|
||||
bool TSQueue::empty()
|
||||
|
|
@ -23,12 +21,7 @@ TSQueue::t_Callable TSQueue::pop()
|
|||
auto f = std::move(futureQueue.front());
|
||||
futureQueue.pop_front();
|
||||
if (futureQueue.empty()) {
|
||||
// newData.reset();
|
||||
}
|
||||
return f;
|
||||
}
|
||||
|
||||
// HANDLE TSQueue::getNewDataEventHandle()
|
||||
// {
|
||||
// return newData.handle();
|
||||
// }
|
||||
|
|
|
|||
|
|
@ -15,11 +15,9 @@ public:
|
|||
bool empty();
|
||||
t_Callable pop();
|
||||
|
||||
//HANDLE getNewDataEventHandle(); Looks like this wasn't use at all so we can leave the event out.
|
||||
private:
|
||||
using t_CallableQueue = std::deque<t_Callable>;
|
||||
|
||||
//Win32Event newData;
|
||||
std::mutex m;
|
||||
t_CallableQueue futureQueue;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue