Cleared EPOLLIN event after processing a message event in ITTI receive.
git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4665 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
@@ -528,7 +528,7 @@ static inline void itti_receive_msg_internal_event_fd(task_id_t task_id, uint8_t
|
||||
*/
|
||||
epoll_timeout = 0;
|
||||
} else {
|
||||
/* timeout = -1 causes the epoll_wait to wait indefinetely.
|
||||
/* timeout = -1 causes the epoll_wait to wait indefinitely.
|
||||
*/
|
||||
epoll_timeout = -1;
|
||||
}
|
||||
@@ -577,6 +577,8 @@ static inline void itti_receive_msg_internal_event_fd(task_id_t task_id, uint8_t
|
||||
DevAssert(message != NULL);
|
||||
*received_msg = message->msg;
|
||||
itti_free (ITTI_MSG_ORIGIN_ID(*received_msg), message);
|
||||
/* Mark that the event has been processed */
|
||||
itti_desc.threads[thread_id].events[i].events &= ~EPOLLIN;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user