Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
3afcc0bb
Commit
3afcc0bb
authored
Nov 10, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused barrier()
parent
a09b86ce
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
25 deletions
+0
-25
include/vlc_threads.h
include/vlc_threads.h
+0
-24
src/misc/block.c
src/misc/block.c
+0
-1
No files found.
include/vlc_threads.h
View file @
3afcc0bb
...
...
@@ -148,7 +148,6 @@ typedef struct vlc_timer *vlc_timer_t;
/* Unnamed POSIX semaphores not supported on Mac OS X */
# include <mach/semaphore.h>
# include <mach/task.h>
# include <libkern/OSAtomic.h>
/* OSMemoryBarrier() */
# define LIBVLC_USE_PTHREAD 1
# define LIBVLC_USE_PTHREAD_CLEANUP 1
# define LIBVLC_USE_PTHREAD_CANCEL 1
...
...
@@ -486,29 +485,6 @@ static inline void vlc_spin_init (vlc_spinlock_t *spin)
# define vlc_spin_destroy vlc_mutex_destroy
#endif
/**
* Issues a full memory barrier.
*/
static
inline
void
barrier
(
void
)
{
#if defined (__GNUC__) && !defined (__APPLE__) && \
((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1))
__sync_synchronize
();
#elif defined(__APPLE__)
OSMemoryBarrier
();
#elif defined(__powerpc__)
asm
volatile
(
"sync"
:::
"memory"
);
#elif 0 // defined(__i386__)
/* Requires SSE2 support */
asm
volatile
(
"mfence"
:::
"memory"
);
#else
vlc_spinlock_t
spin
;
vlc_spin_init
(
&
spin
);
vlc_spin_lock
(
&
spin
);
vlc_spin_unlock
(
&
spin
);
vlc_spin_destroy
(
&
spin
);
#endif
}
#ifdef __cplusplus
/**
* Helper C++ class to lock a mutex.
...
...
src/misc/block.c
View file @
3afcc0bb
...
...
@@ -75,7 +75,6 @@ static void block_Invalidate (block_t *block)
block
->
p_next
=
NULL
;
block_Check
(
block
);
block
->
pf_release
=
BlockNoRelease
;
barrier
();
/* prevent compiler from optimizing this assignment out */
}
#else
# define block_Check(b) ((void)(b))
...
...
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