* Only call Database::ThreadStart()/ThreadEnd() once per thread.

* Some cleanups in MapUpdater/DelayExecutor.

--HG--
branch : trunk
This commit is contained in:
XTZGZoReX
2010-04-05 13:08:47 +02:00
parent a795a1110c
commit 7c277c87d8
7 changed files with 94 additions and 102 deletions
+7 -3
View File
@@ -11,6 +11,7 @@ class Map;
class MapUpdater
{
public:
MapUpdater();
virtual ~MapUpdater();
@@ -22,15 +23,18 @@ class MapUpdater
int activate(size_t num_threads);
int deactivate(void);
int deactivate();
bool activated();
private:
void update_finished();
DelayExecutor m_executor;
ACE_Condition_Thread_Mutex m_condition;
ACE_Thread_Mutex m_mutex;
size_t pedning_requests;
size_t pending_requests;
void update_finished();
};
#endif //_MAP_UPDATER_H_INCLUDED