diff options
author | Adam <Adam@anope.org> | 2010-08-15 01:45:38 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-08-15 01:45:38 -0400 |
commit | a950ed8cabfeca55c909f02412b1788bd386dcff (patch) | |
tree | cfa9a16c2385176490ea849f6a4041ee9456c8eb /src/module.cpp | |
parent | 4d0a1aaabd861bb7cd1e378bd1e600af1d34d5d2 (diff) |
Rewrote the MySQL API to use threads. This acts similar to before, but is faster. Removed db_mysql_execute for now.
Diffstat (limited to 'src/module.cpp')
-rw-r--r-- | src/module.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/module.cpp b/src/module.cpp index aa46a6f63..9431137b7 100644 --- a/src/module.cpp +++ b/src/module.cpp @@ -92,3 +92,14 @@ unsigned Version::GetBuild() const { return this->Build; } + +Service::Service(Module *o, const Anope::string &n) : owner(o), name(n) +{ + ModuleManager::RegisterService(this); +} + +Service::~Service() +{ + ModuleManager::UnregisterService(this); +} + |