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
ef81690d
Commit
ef81690d
authored
Dec 12, 2023
by
mir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
_Atomic and c++
parent
16bd57ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
common/utils/thread_pool/task_manager.h
common/utils/thread_pool/task_manager.h
+3
-2
No files found.
common/utils/thread_pool/task_manager.h
View file @
ef81690d
...
...
@@ -10,7 +10,6 @@
#define TASK_MANAGER_UE
#define TASK_MANAGER_UE_DECODING
#define TASK_MANAGER_SIM
// LTE
...
...
@@ -21,10 +20,12 @@
#ifndef __cplusplus
#include <stdalign.h>
#include <stdatomic.h>
#else
#include <atomic>
#define _Atomic(X) std::atomic< X >
#define _Alignas(X) alignas(X)
#endif
#include <pthread.h>
...
...
@@ -52,7 +53,7 @@
typedef
struct
{
// Avoid false sharing
_Alignas
(
LEVEL1_DCACHE_LINESIZE
)
_Atomic
int
completed
;
_Alignas
(
LEVEL1_DCACHE_LINESIZE
)
_Atomic
(
int
)
completed
;
}
task_status_t
;
...
...
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