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
8f92249a
Commit
8f92249a
authored
Jan 21, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix previous commit
parent
bafe9aa0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
include/vlc_threads.h
include/vlc_threads.h
+1
-0
include/vlc_threads_funcs.h
include/vlc_threads_funcs.h
+7
-2
No files found.
include/vlc_threads.h
View file @
8f92249a
...
...
@@ -58,6 +58,7 @@
# define LIBVLC_USE_PTHREAD 1
# define _APPLE_C_SOURCE 1
/* Proper pthread semantics on OSX */
# include <unistd.h>
/* _POSIX_SPIN_LOCKS */
# include <pthread.h>
/* Needed for pthread_cond_timedwait */
# include <errno.h>
...
...
include/vlc_threads_funcs.h
View file @
8f92249a
...
...
@@ -813,7 +813,7 @@ typedef struct
*/
static
inline
int
vlc_spin_init
(
vlc_spinlock_t
*
spin
)
{
return
pthread_spin_init
(
&
spin
,
PTHREAD_PROCESS_PRIVATE
);
return
pthread_spin_init
(
&
spin
->
spin
,
PTHREAD_PROCESS_PRIVATE
);
}
/**
...
...
@@ -842,7 +842,12 @@ static inline int vlc_spin_destroy (vlc_spinlock_t *spin)
#else
/* Fallback to plain mutexes if spinlocks are not available */
typedef
vlc_mutex_t
vlc_spinlock_t
;
# define vlc_spin_init vlc_mutex_init
static
inline
int
vlc_spin_init
(
vlc_spinlock_t
*
spin
)
{
return
vlc_mutex_init
(
NULL
,
spin
);
}
# define vlc_spin_lock vlc_mutex_lock
# define vlc_spin_unlock vlc_mutex_unlock
# define vlc_spin_destroy vlc_mutex_destroy
...
...
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