diff src/modules/thread/LuaThread.h @ 1304:ee1448bb9680 minor

Fix race conditions and deadlocks in Channels (hopefully) (issue #554) Also, this is a giant commit because of the official Code Style (tm) was applied.
author Bart van Strien <bart.bes+projects@gmail.com>
date Wed, 30 Jan 2013 17:15:12 +0100
parents a74672ba1320
children
line wrap: on
line diff
--- a/src/modules/thread/LuaThread.h	Sun Jan 27 20:04:16 2013 +0100
+++ b/src/modules/thread/LuaThread.h	Wed Jan 30 17:15:12 2013 +0100
@@ -33,19 +33,19 @@
 {
 namespace thread
 {
-	class LuaThread : public love::Object, public Threadable
-	{
-	private:
-		love::Data *code;
-		std::string name;
-		std::string error;
+class LuaThread : public love::Object, public Threadable
+{
+public:
+	LuaThread(const std::string &name, love::Data *code);
+	~LuaThread();
+	void threadFunction();
+	const std::string &getError();
 
-	public:
-		LuaThread(const std::string &name, love::Data *code);
-		~LuaThread();
-		void threadFunction();
-		const std::string &getError();
-	};
+private:
+	love::Data *code;
+	std::string name;
+	std::string error;
+};
 } // thread
 } // love