Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
Michael Black
OpenXG-RAN
Commits
18b3189d
Commit
18b3189d
authored
Sep 05, 2022
by
Sakthivel Velumani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix to support subscribing event from external thread
parent
474cde3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
common/utils/ocp_itti/intertask_interface.cpp
common/utils/ocp_itti/intertask_interface.cpp
+3
-7
No files found.
common/utils/ocp_itti/intertask_interface.cpp
View file @
18b3189d
...
@@ -274,16 +274,12 @@ extern "C" {
...
@@ -274,16 +274,12 @@ extern "C" {
struct
epoll_event
events
[
t
->
nb_fd_epoll
];
struct
epoll_event
events
[
t
->
nb_fd_epoll
];
// Weird condition to deal with crap legacy itti interface
// Weird condition to deal with crap legacy itti interface
if
(
t
->
nb_fd_epoll
==
1
)
{
if
(
t
->
message_queue
.
empty
())
{
while
(
t
->
message_queue
.
empty
())
{
do
{
itti_get_events_locked
(
task_id
,
events
,
t
->
nb_fd_epoll
);
pthread_mutex_lock
(
&
t
->
queue_cond_lock
);
}
}
else
{
if
(
t
->
message_queue
.
empty
())
{
itti_get_events_locked
(
task_id
,
events
,
t
->
nb_fd_epoll
);
itti_get_events_locked
(
task_id
,
events
,
t
->
nb_fd_epoll
);
pthread_mutex_lock
(
&
t
->
queue_cond_lock
);
pthread_mutex_lock
(
&
t
->
queue_cond_lock
);
}
}
while
(
t
->
message_queue
.
empty
()
&&
t
->
nb_fd_epoll
==
1
);
}
}
// Legacy design: we return even if we have no message
// Legacy design: we return even if we have no message
...
...
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