ADD: updated Tracklist and TracklistItem with tests
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include <SimCore/Position.hpp>
|
||||
#include <SimCore/SafeMap.hpp>
|
||||
#include <Entities/Tracklist/TracklistItem.hpp>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
#include <loguru.hpp>
|
||||
|
||||
@@ -26,7 +27,7 @@ namespace TrackList
|
||||
|
||||
void stopSanitizer();
|
||||
|
||||
SimCore::Identifier getTrackID(SimCore::ObjectSource source);
|
||||
// SimCore::Identifier getTrackID(SimCore::ObjectSource source);
|
||||
|
||||
void addTrack(std::shared_ptr<SimCore::SimTrack> track);
|
||||
|
||||
@@ -38,6 +39,9 @@ namespace TrackList
|
||||
|
||||
size_t size();
|
||||
|
||||
void setTrackTimeout(int millseconds);
|
||||
int getTrackTimeoutValue();
|
||||
|
||||
private:
|
||||
|
||||
const SimCore::Identifier OwnID_;
|
||||
@@ -56,6 +60,7 @@ namespace TrackList
|
||||
std::thread sanitizerThread_;
|
||||
std::atomic_bool sanitizerIsRunning_;
|
||||
std::atomic_bool stopSanitizer_;
|
||||
int TrackTimeout_ = 1000;
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user