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
c41d1baf
Commit
c41d1baf
authored
Mar 07, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused parameter warnings for Win32 compiling.
parent
280d3b3c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
include/vlc_threads_funcs.h
include/vlc_threads_funcs.h
+16
-0
No files found.
include/vlc_threads_funcs.h
View file @
c41d1baf
...
@@ -94,9 +94,13 @@ static inline void __vlc_mutex_lock( const char * psz_file, int i_line,
...
@@ -94,9 +94,13 @@ static inline void __vlc_mutex_lock( const char * psz_file, int i_line,
vlc_mutex_t
*
p_mutex
)
vlc_mutex_t
*
p_mutex
)
{
{
#if defined( UNDER_CE )
#if defined( UNDER_CE )
VLC_UNUSED
(
psz_file
);
VLC_UNUSED
(
i_line
);
EnterCriticalSection
(
&
p_mutex
->
csection
);
EnterCriticalSection
(
&
p_mutex
->
csection
);
#elif defined( WIN32 )
#elif defined( WIN32 )
VLC_UNUSED
(
psz_file
);
VLC_UNUSED
(
i_line
);
if
(
p_mutex
->
mutex
)
if
(
p_mutex
->
mutex
)
WaitForSingleObject
(
p_mutex
->
mutex
,
INFINITE
);
WaitForSingleObject
(
p_mutex
->
mutex
,
INFINITE
);
else
else
...
@@ -128,9 +132,13 @@ static inline void __vlc_mutex_unlock( const char * psz_file, int i_line,
...
@@ -128,9 +132,13 @@ static inline void __vlc_mutex_unlock( const char * psz_file, int i_line,
vlc_mutex_t
*
p_mutex
)
vlc_mutex_t
*
p_mutex
)
{
{
#if defined( UNDER_CE )
#if defined( UNDER_CE )
VLC_UNUSED
(
psz_file
);
VLC_UNUSED
(
i_line
);
LeaveCriticalSection
(
&
p_mutex
->
csection
);
LeaveCriticalSection
(
&
p_mutex
->
csection
);
#elif defined( WIN32 )
#elif defined( WIN32 )
VLC_UNUSED
(
psz_file
);
VLC_UNUSED
(
i_line
);
if
(
p_mutex
->
mutex
)
if
(
p_mutex
->
mutex
)
ReleaseMutex
(
p_mutex
->
mutex
);
ReleaseMutex
(
p_mutex
->
mutex
);
else
else
...
@@ -168,9 +176,13 @@ static inline void __vlc_cond_signal( const char * psz_file, int i_line,
...
@@ -168,9 +176,13 @@ static inline void __vlc_cond_signal( const char * psz_file, int i_line,
vlc_cond_t
*
p_condvar
)
vlc_cond_t
*
p_condvar
)
{
{
#if defined( UNDER_CE )
#if defined( UNDER_CE )
VLC_UNUSED
(
psz_file
);
VLC_UNUSED
(
i_line
);
PulseEvent
(
p_condvar
->
event
);
PulseEvent
(
p_condvar
->
event
);
#elif defined( WIN32 )
#elif defined( WIN32 )
VLC_UNUSED
(
psz_file
);
VLC_UNUSED
(
i_line
);
/* Release one waiting thread if one is available. */
/* Release one waiting thread if one is available. */
/* For this trick to work properly, the vlc_cond_signal must be surrounded
/* For this trick to work properly, the vlc_cond_signal must be surrounded
* by a mutex. This will prevent another thread from stealing the signal */
* by a mutex. This will prevent another thread from stealing the signal */
...
@@ -261,6 +273,8 @@ static inline void __vlc_cond_wait( const char * psz_file, int i_line,
...
@@ -261,6 +273,8 @@ static inline void __vlc_cond_wait( const char * psz_file, int i_line,
vlc_mutex_lock
(
p_mutex
);
vlc_mutex_lock
(
p_mutex
);
#elif defined( WIN32 )
#elif defined( WIN32 )
VLC_UNUSED
(
psz_file
);
VLC_UNUSED
(
i_line
);
if
(
!
p_condvar
->
semaphore
)
if
(
!
p_condvar
->
semaphore
)
{
{
/* Increase our wait count */
/* Increase our wait count */
...
@@ -385,6 +399,8 @@ static inline int __vlc_cond_timedwait( const char * psz_file, int i_line,
...
@@ -385,6 +399,8 @@ static inline int __vlc_cond_timedwait( const char * psz_file, int i_line,
return
ETIMEDOUT
;
/* this error is perfectly normal */
return
ETIMEDOUT
;
/* this error is perfectly normal */
#elif defined( WIN32 )
#elif defined( WIN32 )
VLC_UNUSED
(
psz_file
);
VLC_UNUSED
(
i_line
);
DWORD
result
;
DWORD
result
;
mtime_t
delay_ms
=
(
deadline
-
mdate
())
/
1000
;
mtime_t
delay_ms
=
(
deadline
-
mdate
())
/
1000
;
...
...
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