diff options
author | Adam <Adam@anope.org> | 2011-08-20 00:57:35 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-08-20 00:57:35 -0400 |
commit | 46639707221fb1af96ca60c717e2e4400818e8f7 (patch) | |
tree | 7d7d3f5074e23cc520872e443ae83971e059b5fd /modules/extra/async_commands.h | |
parent | a68d17c17e904881b580d29290ae37bb2627b51b (diff) |
Removed m_async_commands, it can still cause crashes from invalid pointers on the stack & is a giant mess anyway
Diffstat (limited to 'modules/extra/async_commands.h')
-rw-r--r-- | modules/extra/async_commands.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/modules/extra/async_commands.h b/modules/extra/async_commands.h deleted file mode 100644 index a2f650bae..000000000 --- a/modules/extra/async_commands.h +++ /dev/null @@ -1,30 +0,0 @@ - -class CommandMutex : public Thread -{ - public: - // Mutex used by this command to allow the core to drop and pick up processing of it at will - Mutex mutex; - // Set to true when this thread is processing data that is not thread safe (eg, the command) - bool processing; - CommandSource source; - Command *command; - std::vector<Anope::string> params; - - CommandMutex(CommandSource &s, Command *c, const std::vector<Anope::string> &p) : Thread(), processing(true), source(s), command(c), params(p) { } - - ~CommandMutex() { } - - virtual void Run() = 0; - - virtual void Lock() = 0; - - virtual void Unlock() = 0; -}; - -class AsynchCommandsService : public Service -{ - public: - AsynchCommandsService(Module *o, const Anope::string &n) : Service(o, n) { } - virtual CommandMutex *CurrentCommand() = 0; -}; - |