Commit 3ad54047 authored by aligungr's avatar aligungr

RRC developments

parent 32b69e8d
......@@ -90,9 +90,9 @@ class UeRrcTask : public NtsTask
void sendRrcMessage(ASN_RRC_UL_DCCH_Message *msg);
void receiveRrcMessage(int cellId, ASN_RRC_BCCH_BCH_Message *msg);
void receiveRrcMessage(int cellId, ASN_RRC_BCCH_DL_SCH_Message *msg);
void receiveRrcMessage(int cellId, ASN_RRC_DL_CCCH_Message *msg);
void receiveRrcMessage(int cellId, ASN_RRC_DL_DCCH_Message *msg);
void receiveRrcMessage(int cellId, ASN_RRC_PCCH_Message *msg);
void receiveRrcMessage(int cellId, ASN_RRC_DL_CCCH_Message *msg); // TODO
void receiveRrcMessage(int cellId, ASN_RRC_DL_DCCH_Message *msg); // ..
void receiveRrcMessage(int cellId, ASN_RRC_PCCH_Message *msg); // Broadcast vs için camped olmayanları ignore
/* Service Access Point */
void handleRlsSapMessage(NwUeRlsToRrc &msg);
......
......@@ -36,12 +36,16 @@ class Locked
inline void access(Func &&fun)
{
// Şimdilik access ve mutate aynı, optimizasyon adına read-write lock kullanılabilir
mutate(fun);
std::lock_guard lk(m_mutex);
fun((const T &)m_value);
}
template <typename Func>
inline void mutate(Func &&fun)
{
// Şimdilik access ve mutate aynı, optimizasyon adına read-write lock kullanılabilir
std::lock_guard lk(m_mutex);
fun(m_value);
}
......
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