Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
4232e947
Commit
4232e947
authored
Dec 28, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rewrite CAST_PTHREAD_TO_INT in a ISO C valid way - closes #1407
parent
8ead2f57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
include/vlc_threads_funcs.h
include/vlc_threads_funcs.h
+7
-4
No files found.
include/vlc_threads_funcs.h
View file @
4232e947
...
@@ -76,10 +76,13 @@ VLC_EXPORT( void, __vlc_thread_join, ( vlc_object_t *, const char *, int ) );
...
@@ -76,10 +76,13 @@ VLC_EXPORT( void, __vlc_thread_join, ( vlc_object_t *, const char *, int ) );
#define vlc_mutex_lock( P_MUTEX ) \
#define vlc_mutex_lock( P_MUTEX ) \
__vlc_mutex_lock( __FILE__, __LINE__, P_MUTEX )
__vlc_mutex_lock( __FILE__, __LINE__, P_MUTEX )
#if defined( __APPLE__ ) || defined( __FreeBSD__ )
#if defined( PTHREAD_COND_T_IN_PTHREAD_H )
# define CAST_PTHREAD_TO_INT(t) (unsigned long int)(uintptr_t)(void *)t
static
inline
int
CAST_PTHREAD_TO_INT
(
pthread_t
th
)
#else
{
# define CAST_PTHREAD_TO_INT(t) (unsigned long int)t
union
{
pthread_t
th
;
int
i
;
}
v
=
{
.
i
=
0
};
v
.
th
=
th
;
return
v
.
i
;
}
#endif
#endif
static
inline
int
__vlc_mutex_lock
(
const
char
*
psz_file
,
int
i_line
,
static
inline
int
__vlc_mutex_lock
(
const
char
*
psz_file
,
int
i_line
,
...
...
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