Commit bb8e9ffd authored by Christophe Massiot's avatar Christophe Massiot

Less aggressive debug message.

parent 34b8dedc
...@@ -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 15 #define THREAD_COND_TIMEOUT 1
/* The configuration file and directory */ /* The configuration file and directory */
#ifdef SYS_BEOS #ifdef SYS_BEOS
......
...@@ -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.12 2003/01/16 09:02:46 sam Exp $ * $Id: vlc_threads_funcs.h,v 1.13 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,8 +605,6 @@ static inline int __vlc_cond_wait( char * psz_file, int i_line, ...@@ -605,8 +605,6 @@ 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 ); gettimeofday( &now, NULL );
timeout.tv_sec = now.tv_sec + THREAD_COND_TIMEOUT; timeout.tv_sec = now.tv_sec + THREAD_COND_TIMEOUT;
timeout.tv_nsec = now.tv_usec * 1000; timeout.tv_nsec = now.tv_usec * 1000;
...@@ -616,13 +614,15 @@ static inline int __vlc_cond_wait( char * psz_file, int i_line, ...@@ -616,13 +614,15 @@ static inline int __vlc_cond_wait( char * psz_file, int i_line,
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 "
"at %s:%d (%s)", (int)pthread_self(),
psz_file, i_line, strerror(i_result) ); psz_file, i_line, strerror(i_result) );
i_result = pthread_cond_wait( &p_condvar->cond, &p_mutex->mutex );
} }
else break;
}
# 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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment