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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
d20ff45f
Commit
d20ff45f
authored
Feb 24, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove logging module dependency from Tpool
parent
b742717f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
common/utils/threadPool/thread-pool.h
common/utils/threadPool/thread-pool.h
+4
-10
No files found.
common/utils/threadPool/thread-pool.h
View file @
d20ff45f
...
@@ -30,7 +30,6 @@
...
@@ -30,7 +30,6 @@
#include <unistd.h>
#include <unistd.h>
#include <sys/syscall.h>
#include <sys/syscall.h>
#include <assertions.h>
#include <assertions.h>
#include <LOG/log.h>
#include <common/utils/system.h>
#include <common/utils/system.h>
//#include <stdatomic.h>
//#include <stdatomic.h>
...
@@ -103,13 +102,9 @@ static inline void *NotifiedFifoData(notifiedFIFO_elt_t *elt) {
...
@@ -103,13 +102,9 @@ static inline void *NotifiedFifoData(notifiedFIFO_elt_t *elt) {
}
}
static
inline
void
delNotifiedFIFO_elt
(
notifiedFIFO_elt_t
*
elt
)
{
static
inline
void
delNotifiedFIFO_elt
(
notifiedFIFO_elt_t
*
elt
)
{
if
(
elt
->
malloced
)
{
AssertFatal
(
elt
->
malloced
,
"delNotifiedFIFO on something not allocated by newNotifiedFIFO
\n
"
);
elt
->
malloced
=
false
;
elt
->
malloced
=
false
;
free
(
elt
);
free
(
elt
);
}
else
printf
(
"delNotifiedFIFO on something not allocated by newNotifiedFIFO
\n
"
);
//LOG_W(UTIL,"delNotifiedFIFO on something not allocated by newNotifiedFIFO\n");
}
}
static
inline
void
initNotifiedFIFO_nothreadSafe
(
notifiedFIFO_t
*
nf
)
{
static
inline
void
initNotifiedFIFO_nothreadSafe
(
notifiedFIFO_t
*
nf
)
{
...
@@ -148,8 +143,7 @@ static inline notifiedFIFO_elt_t *pullNotifiedFIFO_nothreadSafe(notifiedFIFO_t
...
@@ -148,8 +143,7 @@ static inline notifiedFIFO_elt_t *pullNotifiedFIFO_nothreadSafe(notifiedFIFO_t
notifiedFIFO_elt_t
*
ret
=
nf
->
outF
;
notifiedFIFO_elt_t
*
ret
=
nf
->
outF
;
if
(
nf
->
outF
==
nf
->
outF
->
next
)
AssertFatal
(
nf
->
outF
!=
nf
->
outF
->
next
,
"Circular list in thread pool: push several times the same buffer is forbidden
\n
"
);
LOG_E
(
UTIL
,
"Circular list in thread pool: push several times the same buffer is forbidden
\n
"
);
nf
->
outF
=
nf
->
outF
->
next
;
nf
->
outF
=
nf
->
outF
->
next
;
...
...
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