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
2eae7e70
Commit
2eae7e70
authored
Sep 15, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes debug build
parent
c138ff41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
include/vlc_threads_funcs.h
include/vlc_threads_funcs.h
+3
-2
No files found.
include/vlc_threads_funcs.h
View file @
2eae7e70
...
...
@@ -45,6 +45,7 @@ VLC_EXPORT( int, __vlc_thread_set_priority, ( vlc_object_t *, const char *, int
VLC_EXPORT
(
void
,
__vlc_thread_ready
,
(
vlc_object_t
*
)
);
VLC_EXPORT
(
void
,
__vlc_thread_join
,
(
vlc_object_t
*
,
const
char
*
,
int
)
);
#include <errno.h>
/*****************************************************************************
* vlc_threads_init: initialize threads system
...
...
@@ -506,7 +507,7 @@ static inline int __vlc_cond_wait( const char * psz_file, int i_line,
/* In debug mode, timeout */
struct
timespec
timeout
;
clock_gettime
(
CLOCK_MONOTONIC
,
&
now
);
clock_gettime
(
CLOCK_MONOTONIC
,
&
timeout
);
timeout
.
tv_sec
+=
THREAD_COND_TIMEOUT
;
i_result
=
pthread_cond_timedwait
(
&
p_condvar
->
cond
,
&
p_mutex
->
mutex
,
...
...
@@ -580,7 +581,7 @@ static inline int __vlc_cond_timedwait( const char * psz_file, int i_line,
struct
timespec
ts
=
{
d
.
quot
,
d
.
rem
*
1000
};
i_res
=
pthread_cond_timedwait
(
&
p_condvar
->
cond
,
&
p_mutex
->
mutex
,
&
ts
);
if
(
i_res
=
ETIMEDOUT
)
if
(
i_res
=
=
ETIMEDOUT
)
i_res
=
0
;
/* this error is perfectly normal */
else
if
(
i_res
)
/* other errors = bug */
...
...
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