Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
openairinterface5G
Commits
e0471628
Commit
e0471628
authored
6 years ago
by
Thomas Laurent
Browse files
Options
Downloads
Patches
Plain Diff
fix a bug when Linux kernel is busy
parent
d8472426
No related branches found
No related tags found
8 merge requests
!433
Merging develop into develop-nr
,
!430
Develop nr merge2
,
!405
Develop integration 2018 w39
,
!401
Astyle integration test4
,
!400
Astyle integration test3
,
!399
Astyle integration test2
,
!398
Astyle integration test
,
!395
fix_issue_350_gtpu_init
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/utils/ocp_itti/intertask_interface.cpp
+6
-5
6 additions, 5 deletions
common/utils/ocp_itti/intertask_interface.cpp
with
6 additions
and
5 deletions
common/utils/ocp_itti/intertask_interface.cpp
+
6
−
5
View file @
e0471628
...
...
@@ -116,15 +116,14 @@ extern "C" {
pthread_mutex_lock
(
&
t
->
queue_cond_lock
);
int
ret
=
itti_send_msg_to_task_locked
(
destination_task_id
,
instance
,
message
);
// while ( t->message_queue.size()>0 && t->admin.func != NULL )
if
(
t
->
message_queue
.
size
()
>
0
&&
t
->
admin
.
func
!=
NULL
)
{
while
(
t
->
message_queue
.
size
()
>
0
&&
t
->
admin
.
func
!=
NULL
)
{
if
(
t
->
message_queue
.
size
()
>
1
)
LOG_W
(
TMR
,
"queue in no thread mode is %ld
\n
"
,
t
->
message_queue
.
size
());
pthread_mutex_unlock
(
&
t
->
queue_cond_lock
);
t
->
admin
.
func
(
NULL
);
}
else
{
pthread_mutex_unlock
(
&
t
->
queue_cond_lock
);
}
pthread_mutex_lock
(
&
t
->
queue_cond_lock
);
}
pthread_mutex_unlock
(
&
t
->
queue_cond_lock
);
return
ret
;
}
...
...
@@ -198,6 +197,8 @@ extern "C" {
pthread_mutex_unlock
(
&
t
->
queue_cond_lock
);
LOG_D
(
TMR
,
"enter blocking wait for %s
\n
"
,
itti_get_task_name
(
task_id
));
t
->
nb_events
=
epoll_wait
(
t
->
epoll_fd
,
t
->
events
,
t
->
nb_fd_epoll
,
epoll_timeout
);
if
(
t
->
nb_events
<
0
&&
(
errno
==
EINTR
||
errno
==
EAGAIN
)
)
pthread_mutex_lock
(
&
t
->
queue_cond_lock
);
}
while
(
t
->
nb_events
<
0
&&
(
errno
==
EINTR
||
errno
==
EAGAIN
)
);
AssertFatal
(
t
->
nb_events
>=
0
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment