mirror of
https://github.com/anope/anope.git
synced 2026-06-26 08:56:39 +02:00
Rewrote the MySQL API to use threads. This acts similar to before, but is faster. Removed db_mysql_execute for now.
This commit is contained in:
@@ -381,3 +381,19 @@ Version Module::GetVersion() const
|
||||
{
|
||||
return Version(VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD);
|
||||
}
|
||||
|
||||
std::list<dynamic_reference_base *> dyn_references;
|
||||
|
||||
dynamic_reference_base::dynamic_reference_base()
|
||||
{
|
||||
dyn_references.push_back(this);
|
||||
}
|
||||
|
||||
dynamic_reference_base::~dynamic_reference_base()
|
||||
{
|
||||
std::list<dynamic_reference_base *>::iterator it = std::find(dyn_references.begin(), dyn_references.end(), this);
|
||||
|
||||
if (it != dyn_references.end())
|
||||
dyn_references.erase(it);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user