Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
advLigoRTS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CDS
software
advLigoRTS
Merge requests
!382
Adding logger module to advligorts
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Adding logger module to advligorts
ezekiel.dohmen/advligorts:logger-module-parts
into
master
Overview
0
Commits
4
Pipelines
0
Changes
1
Merged
Ezekiel Dohmen
requested to merge
ezekiel.dohmen/advligorts:logger-module-parts
into
master
2 years ago
Overview
0
Commits
4
Pipelines
0
Changes
1
Expand
Not adding code to use it yet.
0
0
Merge request reports
Viewing commit
cc56a6e2
Prev
Next
Show latest version
1 file
+
6
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
cc56a6e2
Fixing if so MAX _TO_READ means somthing
· cc56a6e2
Ezekiel Dohmen
authored
2 years ago
src/drv/rts-logger/module/rts-logger.c
+
6
−
3
Options
@@ -160,7 +160,7 @@ int printer_thread_fn( void * pv )
{
//If num filled is ready but ready_for_print is not, we are waiting for
//the vsnprintf to complete
//the vsnprintf to complete
, which will be fast
if
(
ready_for_print
[
next_to_print
]
==
0
)
{
schedule
();
@@ -181,9 +181,12 @@ int printer_thread_fn( void * pv )
}
num_read
=
0
;
//If there are no mesages ready for printing, we can give up the CPU
// If there are no mesages ready for printing, we can give up the CPU
// for a while
if
(
atomic_read
(
&
g_num_filled
)
==
0
)
usleep_range
(
499
,
1000
);
usleep_range
(
1000
,
2500
);
else
//We have more messages
schedule
();
}
return
0
;
}
Loading