X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmisc%2Fvariables.c;h=4a6d8e908d0f5d821a85d9ba77d1cd4f3d09b56d;hb=80cb294832cf77b8440957d75d24cae2ec853d0c;hp=37fcd798f95d21e609cbd110d16a18e86fca1b6f;hpb=75ba8eb991b640254a6106e00db86c4ed411e0da;p=vlc diff --git a/src/misc/variables.c b/src/misc/variables.c index 37fcd798f9..4a6d8e908d 100644 --- a/src/misc/variables.c +++ b/src/misc/variables.c @@ -849,25 +849,6 @@ int __var_Get( vlc_object_t *p_this, const char *psz_name, vlc_value_t *p_val ) } -#undef var_AcquireMutex -/** - * Finds a process-wide mutex, creates it if needed, and locks it. - * Unlock with vlc_mutex_unlock(). - */ -vlc_mutex_t *var_AcquireMutex( const char *name ) -{ - vlc_object_t *p_global = vlc_global(); - vlc_value_t val; - - if( var_Create( p_global, name, VLC_VAR_MUTEX ) ) - return NULL; - - var_Get( p_global, name, &val ); - vlc_mutex_lock( val.p_address ); - return val.p_address; -} - - /** * Register a callback in a variable *