From: RĂ©mi Denis-Courmont Date: Thu, 21 May 2009 16:43:05 +0000 (+0300) Subject: vlc_mutex_trylock() return value must be checked X-Git-Tag: 1.1.0-ff~5837 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=bd78a9944361cbfaeae1b3f11e00c9b1754a7770;p=vlc vlc_mutex_trylock() return value must be checked --- diff --git a/include/vlc_threads.h b/include/vlc_threads.h index dd0bce7835..52157d8c28 100644 --- a/include/vlc_threads.h +++ b/include/vlc_threads.h @@ -143,7 +143,7 @@ VLC_EXPORT( int, vlc_mutex_init, ( vlc_mutex_t * ) ); VLC_EXPORT( int, vlc_mutex_init_recursive, ( vlc_mutex_t * ) ); VLC_EXPORT( void, vlc_mutex_destroy, ( vlc_mutex_t * ) ); VLC_EXPORT( void, vlc_mutex_lock, ( vlc_mutex_t * ) ); -VLC_EXPORT( int, vlc_mutex_trylock, ( vlc_mutex_t * ) ); +VLC_EXPORT( int, vlc_mutex_trylock, ( vlc_mutex_t * ) LIBVLC_USED ); VLC_EXPORT( void, vlc_mutex_unlock, ( vlc_mutex_t * ) ); VLC_EXPORT( int, vlc_cond_init, ( vlc_cond_t * ) ); VLC_EXPORT( void, vlc_cond_destroy, ( vlc_cond_t * ) );