Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
7e1ef2be
Commit
7e1ef2be
authored
May 23, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
variables: vector mutex locking
parent
748474bf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
18 deletions
+1
-18
src/misc/variables.c
src/misc/variables.c
+1
-18
No files found.
src/misc/variables.c
View file @
7e1ef2be
...
...
@@ -157,7 +157,7 @@ static variable_t *Lookup( vlc_object_t *obj, const char *psz_name )
vlc_object_internals_t
*
priv
=
vlc_internals
(
obj
);
variable_t
**
pp_var
;
vlc_
assert_locked
(
&
priv
->
var_lock
);
vlc_
mutex_lock
(
&
priv
->
var_lock
);
pp_var
=
tfind
(
&
psz_name
,
&
priv
->
var_root
,
varcmp
);
return
(
pp_var
!=
NULL
)
?
*
pp_var
:
NULL
;
}
...
...
@@ -436,8 +436,6 @@ int var_Destroy( vlc_object_t *p_this, const char *psz_name )
vlc_object_internals_t
*
p_priv
=
vlc_internals
(
p_this
);
vlc_mutex_lock
(
&
p_priv
->
var_lock
);
p_var
=
Lookup
(
p_this
,
psz_name
);
if
(
p_var
==
NULL
)
{
...
...
@@ -493,8 +491,6 @@ int var_Change( vlc_object_t *p_this, const char *psz_name,
vlc_object_internals_t
*
p_priv
=
vlc_internals
(
p_this
);
vlc_mutex_lock
(
&
p_priv
->
var_lock
);
p_var
=
Lookup
(
p_this
,
psz_name
);
if
(
p_var
==
NULL
)
{
...
...
@@ -716,7 +712,6 @@ int var_GetAndSet( vlc_object_t *p_this, const char *psz_name, int i_action,
vlc_object_internals_t
*
p_priv
=
vlc_internals
(
p_this
);
vlc_mutex_lock
(
&
p_priv
->
var_lock
);
p_var
=
Lookup
(
p_this
,
psz_name
);
if
(
p_var
==
NULL
)
{
...
...
@@ -784,8 +779,6 @@ int var_Type( vlc_object_t *p_this, const char *psz_name )
vlc_object_internals_t
*
p_priv
=
vlc_internals
(
p_this
);
vlc_mutex_lock
(
&
p_priv
->
var_lock
);
p_var
=
Lookup
(
p_this
,
psz_name
);
if
(
p_var
!=
NULL
)
{
...
...
@@ -809,8 +802,6 @@ int var_SetChecked( vlc_object_t *p_this, const char *psz_name,
vlc_object_internals_t
*
p_priv
=
vlc_internals
(
p_this
);
vlc_mutex_lock
(
&
p_priv
->
var_lock
);
p_var
=
Lookup
(
p_this
,
psz_name
);
if
(
p_var
==
NULL
)
{
...
...
@@ -869,8 +860,6 @@ int var_GetChecked( vlc_object_t *p_this, const char *psz_name,
variable_t
*
p_var
;
int
err
=
VLC_SUCCESS
;
vlc_mutex_lock
(
&
p_priv
->
var_lock
);
p_var
=
Lookup
(
p_this
,
psz_name
);
if
(
p_var
!=
NULL
)
{
...
...
@@ -914,8 +903,6 @@ static int AddCallback( vlc_object_t *p_this, const char *psz_name,
vlc_object_internals_t
*
p_priv
=
vlc_internals
(
p_this
);
vlc_mutex_lock
(
&
p_priv
->
var_lock
);
p_var
=
Lookup
(
p_this
,
psz_name
);
if
(
p_var
==
NULL
)
{
...
...
@@ -982,8 +969,6 @@ static int DelCallback( vlc_object_t *p_this, const char *psz_name,
vlc_object_internals_t
*
p_priv
=
vlc_internals
(
p_this
);
vlc_mutex_lock
(
&
p_priv
->
var_lock
);
p_var
=
Lookup
(
p_this
,
psz_name
);
if
(
p_var
==
NULL
)
{
...
...
@@ -1063,8 +1048,6 @@ int var_TriggerCallback( vlc_object_t *p_this, const char *psz_name )
vlc_object_internals_t
*
p_priv
=
vlc_internals
(
p_this
);
vlc_mutex_lock
(
&
p_priv
->
var_lock
);
p_var
=
Lookup
(
p_this
,
psz_name
);
if
(
p_var
==
NULL
)
{
...
...
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