Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
UERANSIM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
UERANSIM
Commits
f711d762
Commit
f711d762
authored
Jan 04, 2022
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Performance improvements
parent
1ff32e74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/ue/l3/task.cpp
src/ue/l3/task.cpp
+5
-5
No files found.
src/ue/l3/task.cpp
View file @
f711d762
...
@@ -11,13 +11,13 @@
...
@@ -11,13 +11,13 @@
struct
TimerId
struct
TimerId
{
{
static
constexpr
const
int
MACHINE_CYCLE
=
1
;
static
constexpr
const
int
MACHINE_CYCLE
=
1
;
static
constexpr
const
int
TIMER
=
2
;
static
constexpr
const
int
L3_
TIMER
=
2
;
};
};
struct
TimerPeriod
struct
TimerPeriod
{
{
static
constexpr
const
int
MACHINE_CYCLE
=
2500
;
static
constexpr
const
int
MACHINE_CYCLE
=
2500
;
static
constexpr
const
int
TIMER
=
1000
;
static
constexpr
const
int
L3_
TIMER
=
1000
;
};
};
namespace
nr
::
ue
namespace
nr
::
ue
...
@@ -35,7 +35,7 @@ void UeL3Task::onStart()
...
@@ -35,7 +35,7 @@ void UeL3Task::onStart()
m_nas
->
onStart
();
m_nas
->
onStart
();
setTimer
(
TimerId
::
MACHINE_CYCLE
,
TimerPeriod
::
MACHINE_CYCLE
);
setTimer
(
TimerId
::
MACHINE_CYCLE
,
TimerPeriod
::
MACHINE_CYCLE
);
setTimer
(
TimerId
::
TIMER
,
TimerPeriod
::
TIMER
);
setTimer
(
TimerId
::
L3_TIMER
,
TimerPeriod
::
L3_
TIMER
);
}
}
void
UeL3Task
::
onQuit
()
void
UeL3Task
::
onQuit
()
...
@@ -64,9 +64,9 @@ void UeL3Task::onLoop()
...
@@ -64,9 +64,9 @@ void UeL3Task::onLoop()
m_rrc
->
performCycle
();
m_rrc
->
performCycle
();
m_nas
->
performCycle
();
m_nas
->
performCycle
();
}
}
else
if
(
w
.
timerId
==
TimerId
::
TIMER
)
else
if
(
w
.
timerId
==
TimerId
::
L3_
TIMER
)
{
{
setTimer
(
TimerId
::
TIMER
,
TimerPeriod
::
TIMER
);
setTimer
(
TimerId
::
L3_TIMER
,
TimerPeriod
::
L3_
TIMER
);
m_rrc
->
performCycle
();
m_rrc
->
performCycle
();
m_nas
->
performCycle
();
m_nas
->
performCycle
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment