Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
bb8e9ffd
Commit
bb8e9ffd
authored
Jan 22, 2003
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Less aggressive debug message.
parent
34b8dedc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 deletions
+17
-17
include/vlc_config.h
include/vlc_config.h
+1
-1
include/vlc_threads_funcs.h
include/vlc_threads_funcs.h
+16
-16
No files found.
include/vlc_config.h
View file @
bb8e9ffd
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
/* When a thread waits on a condition in debug mode, delay to wait before
/* When a thread waits on a condition in debug mode, delay to wait before
* outputting an error message (in second) */
* outputting an error message (in second) */
#define THREAD_COND_TIMEOUT 1
5
#define THREAD_COND_TIMEOUT 1
/* The configuration file and directory */
/* The configuration file and directory */
#ifdef SYS_BEOS
#ifdef SYS_BEOS
...
...
include/vlc_threads_funcs.h
View file @
bb8e9ffd
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* This header provides a portable threads implementation.
* This header provides a portable threads implementation.
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2002 VideoLAN
* Copyright (C) 1999, 2002 VideoLAN
* $Id: vlc_threads_funcs.h,v 1.1
2 2003/01/16 09:02:46 sam
Exp $
* $Id: vlc_threads_funcs.h,v 1.1
3 2003/01/22 15:16:02 massiot
Exp $
*
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr>
...
@@ -605,24 +605,24 @@ static inline int __vlc_cond_wait( char * psz_file, int i_line,
...
@@ -605,24 +605,24 @@ static inline int __vlc_cond_wait( char * psz_file, int i_line,
struct
timeval
now
;
struct
timeval
now
;
struct
timespec
timeout
;
struct
timespec
timeout
;
for
(
;
;
)
gettimeofday
(
&
now
,
NULL
);
{
timeout
.
tv_sec
=
now
.
tv_sec
+
THREAD_COND_TIMEOUT
;
gettimeofday
(
&
now
,
NULL
);
timeout
.
tv_nsec
=
now
.
tv_usec
*
1000
;
timeout
.
tv_sec
=
now
.
tv_sec
+
THREAD_COND_TIMEOUT
;
timeout
.
tv_nsec
=
now
.
tv_usec
*
1000
;
i_result
=
pthread_cond_timedwait
(
&
p_condvar
->
cond
,
&
p_mutex
->
mutex
,
i_result
=
pthread_cond_timedwait
(
&
p_condvar
->
cond
,
&
p_mutex
->
mutex
,
&
timeout
);
&
timeout
);
if
(
i_result
==
ETIMEDOUT
)
if
(
i_result
==
ETIMEDOUT
)
{
{
msg_Warn
(
p_condvar
->
p_this
,
/* People keep pissing me off with this. --Meuuh */
"thread %d: possible deadlock detected "
msg_Dbg
(
p_condvar
->
p_this
,
"in cond_wait at %s:%d (%s)"
,
(
int
)
pthread_self
(),
"thread %d: secret message triggered "
psz_file
,
i_line
,
strerror
(
i_result
)
);
"at %s:%d (%s)"
,
(
int
)
pthread_self
(),
}
psz_file
,
i_line
,
strerror
(
i_result
)
);
else
break
;
i_result
=
pthread_cond_wait
(
&
p_condvar
->
cond
,
&
p_mutex
->
mutex
);
}
}
# else
# else
i_result
=
pthread_cond_wait
(
&
p_condvar
->
cond
,
&
p_mutex
->
mutex
);
i_result
=
pthread_cond_wait
(
&
p_condvar
->
cond
,
&
p_mutex
->
mutex
);
# endif
# endif
...
...
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