Commit 0ed121e7 authored by aligungr's avatar aligungr

L3 RRC/NAS developments

parent 417bbc14
...@@ -23,7 +23,7 @@ namespace nas ...@@ -23,7 +23,7 @@ namespace nas
* - The list is NOT thread safe * - The list is NOT thread safe
*/ */
template <typename T> template <typename T>
class NasListT1 class NasList
{ {
public: public:
using backup_functor_type = std::function<void(const std::vector<T> &buffer, size_t count)>; using backup_functor_type = std::function<void(const std::vector<T> &buffer, size_t count)>;
...@@ -38,7 +38,7 @@ class NasListT1 ...@@ -38,7 +38,7 @@ class NasListT1
int64_t m_lastAutoCleared; int64_t m_lastAutoCleared;
public: public:
NasListT1(size_t sizeLimit, int64_t autoClearingPeriod, std::optional<backup_functor_type> backupFunctor) NasList(size_t sizeLimit, int64_t autoClearingPeriod, std::optional<backup_functor_type> backupFunctor)
: m_sizeLimit{sizeLimit}, m_autoClearingPeriod{autoClearingPeriod}, m_data{sizeLimit}, m_size{}, : m_sizeLimit{sizeLimit}, m_autoClearingPeriod{autoClearingPeriod}, m_data{sizeLimit}, m_size{},
m_lastAutoCleared{::utils::CurrentTimeMillis()} m_lastAutoCleared{::utils::CurrentTimeMillis()}
{ {
......
...@@ -25,12 +25,12 @@ namespace nr::ue ...@@ -25,12 +25,12 @@ namespace nr::ue
MmStorage::MmStorage(TaskBase *base) : m_base{base} MmStorage::MmStorage(TaskBase *base) : m_base{base}
{ {
m_forbiddenTaiListRoaming = std::make_unique<nas::NasListT1<Tai>>( m_forbiddenTaiListRoaming = std::make_unique<nas::NasList<Tai>>(
FORBIDDEN_TAI_LIST_SIZE, FORBIDDEN_TAI_CLEAR_PERIOD, [this](const std::vector<Tai> &buffer, size_t count) { FORBIDDEN_TAI_LIST_SIZE, FORBIDDEN_TAI_CLEAR_PERIOD, [this](const std::vector<Tai> &buffer, size_t count) {
BackupTaiListInSharedCtx(buffer, count, m_base->shCtx.forbiddenTaiRoaming); BackupTaiListInSharedCtx(buffer, count, m_base->shCtx.forbiddenTaiRoaming);
}); });
m_forbiddenTaiListRps = std::make_unique<nas::NasListT1<Tai>>( m_forbiddenTaiListRps = std::make_unique<nas::NasList<Tai>>(
FORBIDDEN_TAI_LIST_SIZE, FORBIDDEN_TAI_CLEAR_PERIOD, [this](const std::vector<Tai> &buffer, size_t count) { FORBIDDEN_TAI_LIST_SIZE, FORBIDDEN_TAI_CLEAR_PERIOD, [this](const std::vector<Tai> &buffer, size_t count) {
BackupTaiListInSharedCtx(buffer, count, m_base->shCtx.forbiddenTaiRps); BackupTaiListInSharedCtx(buffer, count, m_base->shCtx.forbiddenTaiRps);
}); });
......
...@@ -19,8 +19,8 @@ class MmStorage ...@@ -19,8 +19,8 @@ class MmStorage
TaskBase *m_base; TaskBase *m_base;
public: public:
std::unique_ptr<nas::NasListT1<Tai>> m_forbiddenTaiListRoaming; std::unique_ptr<nas::NasList<Tai>> m_forbiddenTaiListRoaming;
std::unique_ptr<nas::NasListT1<Tai>> m_forbiddenTaiListRps; std::unique_ptr<nas::NasList<Tai>> m_forbiddenTaiListRps;
public: public:
explicit MmStorage(TaskBase *base); explicit MmStorage(TaskBase *base);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment