fix non reentrant issue in itti

This commit is contained in:
laurent
2022-09-02 11:36:47 +02:00
parent abf6801094
commit 9ee917039a
7 changed files with 35 additions and 49 deletions
+1 -1
View File
@@ -479,7 +479,7 @@ void itti_unsubscribe_event_fd(task_id_t task_id, int fd);
\param events events list
@returns number of events to handle
**/
int itti_get_events(task_id_t task_id, struct epoll_event **events);
int itti_get_events(task_id_t task_id, struct epoll_event *events, int nb_max_evts);
/** \brief Retrieves a message in the queue associated to task_id.
If the queue is empty, the thread is blocked till a new message arrives.