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
4c2ec049
Commit
4c2ec049
authored
Mar 05, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused vlc_object_lock and vlc_object_unlock
parent
a22e0f27
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
26 deletions
+0
-26
include/vlc_objects.h
include/vlc_objects.h
+0
-8
src/libvlc.h
src/libvlc.h
+0
-1
src/libvlccore.sym
src/libvlccore.sym
+0
-2
src/misc/objects.c
src/misc/objects.c
+0
-15
No files found.
include/vlc_objects.h
View file @
4c2ec049
...
...
@@ -111,14 +111,6 @@ VLC_EXPORT( void, vlc_list_release, ( vlc_list_t * ) );
__vlc_list_children( VLC_OBJECT(a) )
/* Objects and threading */
VLC_EXPORT
(
void
,
__vlc_object_lock
,
(
vlc_object_t
*
)
);
#define vlc_object_lock( obj ) \
__vlc_object_lock( VLC_OBJECT( obj ) )
VLC_EXPORT
(
void
,
__vlc_object_unlock
,
(
vlc_object_t
*
)
);
#define vlc_object_unlock( obj ) \
__vlc_object_unlock( VLC_OBJECT( obj ) )
VLC_EXPORT
(
void
,
__vlc_object_kill
,
(
vlc_object_t
*
)
);
#define vlc_object_kill(a) \
__vlc_object_kill( VLC_OBJECT(a) )
...
...
src/libvlc.h
View file @
4c2ec049
...
...
@@ -166,7 +166,6 @@ typedef struct vlc_object_internals_t
bool
b_thread
;
/* Objects thread synchronization */
vlc_mutex_t
lock
;
int
pipes
[
2
];
/* Objects management */
...
...
src/libvlccore.sym
View file @
4c2ec049
...
...
@@ -467,10 +467,8 @@ __vlc_object_find
vlc_object_find_name
__vlc_object_hold
__vlc_object_kill
__vlc_object_lock
__vlc_object_release
__vlc_object_set_destructor
__vlc_object_unlock
vlc_plugin_set
vlc_poll
vlc_rand_bytes
...
...
src/misc/objects.c
View file @
4c2ec049
...
...
@@ -163,7 +163,6 @@ void *__vlc_custom_create( vlc_object_t *p_this, size_t i_size,
p_new
->
p_private
=
NULL
;
/* Initialize mutexes and condvars */
vlc_mutex_init
(
&
p_priv
->
lock
);
vlc_mutex_init
(
&
p_priv
->
var_lock
);
vlc_cond_init
(
&
p_priv
->
var_wait
);
p_priv
->
pipes
[
0
]
=
p_priv
->
pipes
[
1
]
=
-
1
;
...
...
@@ -292,7 +291,6 @@ static void vlc_object_destroy( vlc_object_t *p_this )
FREENULL
(
p_this
->
psz_object_name
);
vlc_spin_destroy
(
&
p_priv
->
ref_spin
);
vlc_mutex_destroy
(
&
p_priv
->
lock
);
if
(
p_priv
->
pipes
[
1
]
!=
-
1
&&
p_priv
->
pipes
[
1
]
!=
p_priv
->
pipes
[
0
]
)
close
(
p_priv
->
pipes
[
1
]
);
if
(
p_priv
->
pipes
[
0
]
!=
-
1
)
...
...
@@ -304,19 +302,6 @@ static void vlc_object_destroy( vlc_object_t *p_this )
}
/** Inter-object signaling */
void
__vlc_object_lock
(
vlc_object_t
*
obj
)
{
vlc_mutex_lock
(
&
(
vlc_internals
(
obj
)
->
lock
)
);
}
void
__vlc_object_unlock
(
vlc_object_t
*
obj
)
{
vlc_assert_locked
(
&
(
vlc_internals
(
obj
)
->
lock
)
);
vlc_mutex_unlock
(
&
(
vlc_internals
(
obj
)
->
lock
)
);
}
#ifdef WIN32
# include <winsock2.h>
# include <ws2tcpip.h>
...
...
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