...
This commit is contained in:
@@ -115,7 +115,9 @@ public:
|
||||
|
||||
template <mcc_all_controls_c CONTROLS_T, mcc_logger_c LoggerT = MccNullLogger>
|
||||
MccSimpleTrackingModel(CONTROLS_T* controls, LoggerT logger)
|
||||
: _stopTracking(new std::atomic_bool()), _currentParamsMutex(new std::mutex())
|
||||
: _stopTracking(new std::atomic_bool()),
|
||||
_currentParamsMutex(new std::mutex()),
|
||||
_lastError(MccSimpleTrackingModelErrorCode::ERROR_OK)
|
||||
{
|
||||
std::ostringstream os;
|
||||
os << std::this_thread::get_id();
|
||||
@@ -465,6 +467,10 @@ public:
|
||||
return _currentParams;
|
||||
}
|
||||
|
||||
error_t trackinLastError() const
|
||||
{
|
||||
return _lastError;
|
||||
}
|
||||
|
||||
protected:
|
||||
std::function<error_t()> _trackingFunc{};
|
||||
@@ -472,6 +478,8 @@ protected:
|
||||
|
||||
tracking_params_t _currentParams{};
|
||||
std::unique_ptr<std::mutex> _currentParamsMutex{};
|
||||
|
||||
error_t _lastError;
|
||||
};
|
||||
|
||||
} // namespace mcc
|
||||
|
||||
Reference in New Issue
Block a user