Commit 0ed121e7 authored by aligungr's avatar aligungr

L3 RRC/NAS developments

parent 417bbc14
......@@ -23,7 +23,7 @@ namespace nas
* - The list is NOT thread safe
*/
template <typename T>
class NasListT1
class NasList
{
public:
using backup_functor_type = std::function<void(const std::vector<T> &buffer, size_t count)>;
......@@ -38,7 +38,7 @@ class NasListT1
int64_t m_lastAutoCleared;
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_lastAutoCleared{::utils::CurrentTimeMillis()}
{
......
......@@ -25,12 +25,12 @@ namespace nr::ue
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) {
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) {
BackupTaiListInSharedCtx(buffer, count, m_base->shCtx.forbiddenTaiRps);
});
......
......@@ -19,8 +19,8 @@ class MmStorage
TaskBase *m_base;
public:
std::unique_ptr<nas::NasListT1<Tai>> m_forbiddenTaiListRoaming;
std::unique_ptr<nas::NasListT1<Tai>> m_forbiddenTaiListRps;
std::unique_ptr<nas::NasList<Tai>> m_forbiddenTaiListRoaming;
std::unique_ptr<nas::NasList<Tai>> m_forbiddenTaiListRps;
public:
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