Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Robert Stone
VLC
Commits
794c2e64
Commit
794c2e64
authored
6 years ago
by
Rémi Denis-Courmont
Browse files
Options
Downloads
Patches
Plain Diff
vout: relax statistics ordering
parent
3f4275f5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/video_output/statistic.h
+6
-4
6 additions, 4 deletions
src/video_output/statistic.h
with
6 additions
and
4 deletions
src/video_output/statistic.h
+
6
−
4
View file @
794c2e64
...
...
@@ -48,19 +48,21 @@ static inline void vout_statistic_GetReset(vout_statistic_t *stat,
unsigned
*
restrict
displayed
,
unsigned
*
restrict
lost
)
{
*
displayed
=
atomic_exchange
(
&
stat
->
displayed
,
0
);
*
lost
=
atomic_exchange
(
&
stat
->
lost
,
0
);
*
displayed
=
atomic_exchange_explicit
(
&
stat
->
displayed
,
0
,
memory_order_relaxed
);
*
lost
=
atomic_exchange_explicit
(
&
stat
->
lost
,
0
,
memory_order_relaxed
);
}
static
inline
void
vout_statistic_AddDisplayed
(
vout_statistic_t
*
stat
,
int
displayed
)
{
atomic_fetch_add
(
&
stat
->
displayed
,
displayed
);
atomic_fetch_add_explicit
(
&
stat
->
displayed
,
displayed
,
memory_order_relaxed
);
}
static
inline
void
vout_statistic_AddLost
(
vout_statistic_t
*
stat
,
int
lost
)
{
atomic_fetch_add
(
&
stat
->
lost
,
lost
);
atomic_fetch_add
_explicit
(
&
stat
->
lost
,
lost
,
memory_order_relaxed
);
}
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment