Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
fc4676a3
Commit
fc4676a3
authored
Jan 24, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused vlc_object_wait()
parent
ce269bfe
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
47 deletions
+1
-47
include/vlc_objects.h
include/vlc_objects.h
+0
-7
src/libvlc.h
src/libvlc.h
+1
-4
src/libvlccore.sym
src/libvlccore.sym
+0
-1
src/misc/objects.c
src/misc/objects.c
+0
-35
No files found.
include/vlc_objects.h
View file @
fc4676a3
...
...
@@ -123,13 +123,6 @@ VLC_EXPORT( void, __vlc_object_assert_locked, ( vlc_object_t * ) );
#define vlc_object_assert_locked( obj ) \
__vlc_object_assert_locked( VLC_OBJECT( obj ) )
#if defined (__GNUC__) && !defined __cplusplus
__attribute__
((
deprecated
))
#endif
VLC_EXPORT
(
void
,
__vlc_object_wait
,
(
vlc_object_t
*
)
);
#define vlc_object_wait( obj ) \
__vlc_object_wait( 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 @
fc4676a3
...
...
@@ -45,9 +45,7 @@ void system_End ( libvlc_int_t * );
/*
* Legacy object stuff that is still used within libvlccore (only)
*/
void
__vlc_object_signal_unlocked
(
vlc_object_t
*
);
#define vlc_object_signal_unlocked( obj ) \
__vlc_object_signal_unlocked( VLC_OBJECT( obj ) )
#define vlc_object_signal_unlocked( obj )
vlc_list_t
*
vlc_list_find
(
vlc_object_t
*
,
int
,
int
);
#define VLC_OBJECT_INTF (-4)
...
...
@@ -168,7 +166,6 @@ typedef struct vlc_object_internals_t
/* Objects thread synchronization */
vlc_mutex_t
lock
;
vlc_cond_t
wait
;
int
pipes
[
2
];
/* Objects management */
...
...
src/libvlccore.sym
View file @
fc4676a3
...
...
@@ -492,7 +492,6 @@ __vlc_object_lock
__vlc_object_release
__vlc_object_set_destructor
__vlc_object_unlock
__vlc_object_wait
vlc_poll
vlc_rand_bytes
vlc_recvmsg
...
...
src/misc/objects.c
View file @
fc4676a3
...
...
@@ -169,7 +169,6 @@ void *__vlc_custom_create( vlc_object_t *p_this, size_t i_size,
/* Initialize mutexes and condvars */
vlc_mutex_init
(
&
p_priv
->
lock
);
vlc_cond_init
(
&
p_priv
->
wait
);
vlc_mutex_init
(
&
p_priv
->
var_lock
);
vlc_cond_init
(
&
p_priv
->
var_wait
);
p_priv
->
pipes
[
0
]
=
p_priv
->
pipes
[
1
]
=
-
1
;
...
...
@@ -299,7 +298,6 @@ static void vlc_object_destroy( vlc_object_t *p_this )
vlc_spin_destroy
(
&
p_priv
->
ref_spin
);
vlc_mutex_destroy
(
&
p_priv
->
lock
);
vlc_cond_destroy
(
&
p_priv
->
wait
);
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
)
...
...
@@ -423,38 +421,6 @@ int vlc_object_waitpipe( vlc_object_t *obj )
}
/**
* Suspends until another thread calls vlc_object_signal_unlocked().
* The thread may be woken up earlier due to limitations of the underlying
* implementation.
*
* In new code, please use vlc_cond_wait() instead.
*
* This function is a cancellation point. In case of cancellation, the object
* will be in locked state.
*/
void
__vlc_object_wait
(
vlc_object_t
*
obj
)
{
vlc_object_internals_t
*
priv
=
vlc_internals
(
obj
);
vlc_assert_locked
(
&
priv
->
lock
);
vlc_cond_wait
(
&
priv
->
wait
,
&
priv
->
lock
);
}
/**
* Wakes up one thread waiting on the object. If no thread are (yet) waiting,
* nothing happens.
*
* Please do not use this function in new code as we are trying to untangle
* objects and threads. Use vlc_cond_wait() instead.
*/
void
__vlc_object_signal_unlocked
(
vlc_object_t
*
obj
)
{
vlc_assert_locked
(
&
(
vlc_internals
(
obj
)
->
lock
));
vlc_cond_signal
(
&
(
vlc_internals
(
obj
)
->
wait
)
);
}
/**
* Requests termination of an object, cancels the object thread, and make the
* object wait pipe (if it exists) readable. Not a cancellation point.
...
...
@@ -472,7 +438,6 @@ void __vlc_object_kill( vlc_object_t *p_this )
p_this
->
b_die
=
true
;
}
vlc_cond_broadcast
(
&
priv
->
wait
);
/* This also serves as a memory barrier toward vlc_object_alive(): */
vlc_object_unlock
(
p_this
);
...
...
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