now compiling 😄

This commit is contained in:
Johannes Wendel
2019-04-25 21:39:43 +02:00
parent 30ab854db6
commit 4cd6dfedd3
4 changed files with 53 additions and 43 deletions

View File

@@ -0,0 +1,14 @@
#!/bin/sh
echo "Making sure the code compiles!!!"
if [ ! -d 'FlippR-Driver/build' ]; then
echo "Make sure you have the build folder!"
exit 1
fi
cd FlippR-Driver/build
cmake ..
make
exit $rc

View File

@@ -35,7 +35,7 @@ void SocketHandler::run()
while(true)
{
Event event = this->queue.pop();
Event event = this->queue->pop();
if(event.name == "END")
{
@@ -50,7 +50,7 @@ void SocketHandler::run()
void SocketHandler::handle(Event &event)
{
this->queue.push(event);
this->queue->push(event);
}
}

View File

@@ -11,10 +11,10 @@
#include <Poco/Net/TCPServerConnection.h>
#include "BlockingQueue.hpp"
#include "InputDriver.h"
#include "detail/EventHandler.h"
#include "Event.h"
#include "utility/IBlockingQueue.h"
#include "input/InputDriver.h"
#include "input/detail/EventHandler.h"
#include "input/Event.h"
namespace flippR_driver
{
@@ -33,7 +33,7 @@ public:
void handle(flippR_driver::input::Event &event) override;
private:
flippR_driver::utility::BlockingQueue<flippR_driver::input::Event> queue;
flippR_driver::utility::IBlockingQueue<flippR_driver::input::Event>* queue;
};
}