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
lizhongxiao
OpenXG-RAN
Commits
3597ac63
Commit
3597ac63
authored
Aug 21, 2023
by
mir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Priority and scheduling policy removed
parent
3c056f5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
common/utils/thread_pool/task_manager.c
common/utils/thread_pool/task_manager.c
+3
-1
No files found.
common/utils/thread_pool/task_manager.c
View file @
3597ac63
...
@@ -472,6 +472,7 @@ void init_task_manager(task_manager_t* man, uint32_t num_threads)
...
@@ -472,6 +472,7 @@ void init_task_manager(task_manager_t* man, uint32_t num_threads)
args
->
idx
=
i
;
args
->
idx
=
i
;
args
->
man
=
man
;
args
->
man
=
man
;
/*
pthread_attr_t attr = {0};
pthread_attr_t attr = {0};
int ret=pthread_attr_init(&attr);
int ret=pthread_attr_init(&attr);
assert(ret == 0);
assert(ret == 0);
...
@@ -482,8 +483,9 @@ void init_task_manager(task_manager_t* man, uint32_t num_threads)
...
@@ -482,8 +483,9 @@ void init_task_manager(task_manager_t* man, uint32_t num_threads)
struct sched_param sparam={0};
struct sched_param sparam={0};
sparam.sched_priority = 94;
sparam.sched_priority = 94;
ret=pthread_attr_setschedparam(&attr, &sparam);
ret=pthread_attr_setschedparam(&attr, &sparam);
*/
int
rc
=
pthread_create
(
&
man
->
t_arr
[
i
],
&
attr
,
worker_thread
,
args
);
int
rc
=
pthread_create
(
&
man
->
t_arr
[
i
],
NULL
,
worker_thread
,
args
);
assert
(
rc
==
0
);
assert
(
rc
==
0
);
}
}
...
...
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