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
spbro
OpenXG-RAN
Commits
a432feda
Commit
a432feda
authored
Dec 23, 2020
by
Laurent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add external visibility for itti_create_queue
parent
42a11033
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
common/utils/ocp_itti/intertask_interface.cpp
common/utils/ocp_itti/intertask_interface.cpp
+2
-1
common/utils/ocp_itti/intertask_interface.h
common/utils/ocp_itti/intertask_interface.h
+2
-0
No files found.
common/utils/ocp_itti/intertask_interface.cpp
View file @
a432feda
...
@@ -336,7 +336,7 @@ extern "C" {
...
@@ -336,7 +336,7 @@ extern "C" {
usleep
(
100
*
1000
);
// Allow the tasks to receive the message before going returning to main thread
usleep
(
100
*
1000
);
// Allow the tasks to receive the message before going returning to main thread
}
}
void
itti_create_queue
(
const
task_info_t
*
task_info
)
{
int
itti_create_queue
(
const
task_info_t
*
task_info
)
{
pthread_mutex_lock
(
&
lock_nb_queues
);
pthread_mutex_lock
(
&
lock_nb_queues
);
int
newQueue
=
nb_queues
;
int
newQueue
=
nb_queues
;
nb_queues
++
;
nb_queues
++
;
...
@@ -351,6 +351,7 @@ extern "C" {
...
@@ -351,6 +351,7 @@ extern "C" {
if
(
tasks
[
newQueue
].
admin
.
threadFunc
!=
NULL
)
if
(
tasks
[
newQueue
].
admin
.
threadFunc
!=
NULL
)
itti_create_task
((
task_id_t
)
newQueue
,
tasks
[
newQueue
].
admin
.
threadFunc
,
NULL
);
itti_create_task
((
task_id_t
)
newQueue
,
tasks
[
newQueue
].
admin
.
threadFunc
,
NULL
);
return
newQueue
;
}
}
int
itti_init
(
task_id_t
task_max
,
int
itti_init
(
task_id_t
task_max
,
...
...
common/utils/ocp_itti/intertask_interface.h
View file @
a432feda
...
@@ -501,6 +501,8 @@ int itti_create_task(task_id_t task_id,
...
@@ -501,6 +501,8 @@ int itti_create_task(task_id_t task_id,
void
*
(
*
start_routine
)
(
void
*
),
void
*
(
*
start_routine
)
(
void
*
),
void
*
args_p
);
void
*
args_p
);
int
itti_create_queue
(
const
task_info_t
*
task_info
);
/** \brief Exit the current task.
/** \brief Exit the current task.
**/
**/
void
itti_exit_task
(
void
);
void
itti_exit_task
(
void
);
...
...
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