comparison src/modules/thread/ThreadModule.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
comparison
equal deleted inserted replaced
1197:1a59c21cd2f3 1304:ee1448bb9680
34 34
35 namespace love 35 namespace love
36 { 36 {
37 namespace thread 37 namespace thread
38 { 38 {
39 class ThreadModule : public love::Module 39 class ThreadModule : public love::Module
40 { 40 {
41 public: 41 public:
42 virtual ~ThreadModule() {} 42 virtual ~ThreadModule() {}
43 LuaThread *newThread(const std::string &name, love::Data *data); 43 LuaThread *newThread(const std::string &name, love::Data *data);
44 Channel *newChannel(); 44 Channel *newChannel();
45 Channel *getChannel(const std::string &name); 45 Channel *getChannel(const std::string &name);
46 46
47 const char *getName() const; 47 const char *getName() const;
48 }; // ThreadModule 48 }; // ThreadModule
49 } // thread 49 } // thread
50 } // love 50 } // love
51 51
52 #endif // LOVE_THREAD_THREADMODULE_H 52 #endif // LOVE_THREAD_THREADMODULE_H