Glitch with threading

This commit is contained in:
Kayne Ruse
2013-06-17 07:24:16 +10:00
parent 419c9d8765
commit 7fef2501a3
4 changed files with 90 additions and 49 deletions
+6 -1
View File
@@ -4,6 +4,7 @@
#include "base_scene.hpp"
#include "service_locator.hpp"
#include "packet_type.hpp"
#include "network_queue.hpp"
#include "config_utility.hpp"
#include "surface_manager.hpp"
@@ -11,6 +12,8 @@
#include "button.hpp"
#include "raster_font.hpp"
#include "SDL/SDL_thread.h"
#include <vector>
#include <string>
@@ -40,7 +43,7 @@ protected:
void KeyUp(SDL_KeyboardEvent const&);
//utilities
void Receive();
int HandlePacket(Packet p);
void BroadcastNetwork();
void PushServer(BroadcastResponse&);
@@ -58,6 +61,8 @@ protected:
SDL_Rect listBox;
std::vector<ServerEntry> serverList;
ServerEntry* selectedServer = nullptr;
SDL_Thread* queueThread = nullptr;
};
#endif