19 #ifndef _MAP_UPDATER_H_INCLUDED
20 #define _MAP_UPDATER_H_INCLUDED
25 #include <condition_variable>
40 void schedule_update(
Map& map,
uint32 diff);
44 void activate(
size_t num_threads);
61 void update_finished();
66 #endif //_MAP_UPDATER_H_INCLUDED
size_t pending_requests
Definition: MapUpdater.h:59
#define false
Definition: CascPort.h:18
std::vector< std::thread > _workerThreads
Definition: MapUpdater.h:54
MapUpdater()
Definition: MapUpdater.h:35
~MapUpdater()
Definition: MapUpdater.h:36
std::mutex _lock
Definition: MapUpdater.h:57
std::atomic< bool > _cancelationToken
Definition: MapUpdater.h:55
uint32_t uint32
Definition: Define.h:150
std::condition_variable _condition
Definition: MapUpdater.h:58
Definition: MapUpdater.h:31
Definition: MapUpdater.cpp:25
#define TC_GAME_API
Definition: Define.h:134
ProducerConsumerQueue< MapUpdateRequest * > _queue
Definition: MapUpdater.h:52