Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
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
videolan
vlc
Commits
a9daba19
Commit
a9daba19
authored
Jun 29, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move vlc_atomic_t typedef to <vlc_common.h>
Then we don't always need to include <vlc_atomic.h>
parent
85a9ea3b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
include/vlc_atomic.h
include/vlc_atomic.h
+0
-9
include/vlc_common.h
include/vlc_common.h
+9
-1
No files found.
include/vlc_atomic.h
View file @
a9daba19
...
...
@@ -26,15 +26,6 @@
* Atomic operations do not require locking, but they are not very powerful.
*/
/**
* Memory storage space for an atom. Never access it directly.
*/
typedef
union
{
volatile
uintptr_t
u
;
volatile
intptr_t
s
;
}
vlc_atomic_t
;
/* All functions return the atom value _after_ the operation. */
VLC_EXPORT
(
uintptr_t
,
vlc_atomic_get
,
(
const
vlc_atomic_t
*
));
...
...
include/vlc_common.h
View file @
a9daba19
...
...
@@ -516,6 +516,15 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */
#include "vlc_mtime.h"
#include "vlc_threads.h"
/**
* Memory storage space for an atom. Never access it directly.
*/
typedef
union
{
volatile
uintptr_t
u
;
volatile
intptr_t
s
;
}
vlc_atomic_t
;
/*****************************************************************************
* Common structure members
*****************************************************************************/
...
...
@@ -558,7 +567,6 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */
# define VLC_OBJECT( x ) ((vlc_object_t *)(x))
#endif
#include <vlc_atomic.h>
typedef
struct
gc_object_t
{
vlc_atomic_t
refs
;
...
...
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