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
b550a967
Commit
b550a967
authored
Nov 28, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ordering
parent
b8acb755
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
17 deletions
+19
-17
include/vlc_objects.h
include/vlc_objects.h
+19
-17
No files found.
include/vlc_objects.h
View file @
b550a967
...
@@ -153,23 +153,6 @@ VLC_EXPORT( vlc_bool_t, __vlc_object_wait, ( vlc_object_t * ) );
...
@@ -153,23 +153,6 @@ VLC_EXPORT( vlc_bool_t, __vlc_object_wait, ( vlc_object_t * ) );
#define vlc_object_wait( obj ) \
#define vlc_object_wait( obj ) \
__vlc_object_wait( VLC_OBJECT( obj ) )
__vlc_object_wait( VLC_OBJECT( obj ) )
/* NOTE: this function is a *temporary* convenience.
* See the vlc_object_alive() documentation for a better alternative.
*/
static
inline
vlc_bool_t
__vlc_object_lock_and_wait
(
vlc_object_t
*
obj
)
{
vlc_bool_t
b
=
VLC_TRUE
;
vlc_object_lock
(
obj
);
if
(
vlc_object_alive
(
obj
)
)
b
=
vlc_object_wait
(
obj
);
vlc_object_unlock
(
obj
);
return
b
;
}
#define vlc_object_lock_and_wait( obj ) \
__vlc_object_lock_and_wait( VLC_OBJECT(obj) )
VLC_EXPORT
(
int
,
__vlc_object_timedwait
,
(
vlc_object_t
*
,
mtime_t
)
);
VLC_EXPORT
(
int
,
__vlc_object_timedwait
,
(
vlc_object_t
*
,
mtime_t
)
);
#define vlc_object_timedwait( obj, d ) \
#define vlc_object_timedwait( obj, d ) \
__vlc_object_timedwait( VLC_OBJECT( obj ), d )
__vlc_object_timedwait( VLC_OBJECT( obj ), d )
...
@@ -196,3 +179,22 @@ VLC_EXPORT( vlc_bool_t, __vlc_object_alive, ( vlc_object_t * ) );
...
@@ -196,3 +179,22 @@ VLC_EXPORT( vlc_bool_t, __vlc_object_alive, ( vlc_object_t * ) );
__vlc_object_alive( VLC_OBJECT(a) )
__vlc_object_alive( VLC_OBJECT(a) )
int
vlc_object_waitpipe
(
vlc_object_t
*
obj
);
int
vlc_object_waitpipe
(
vlc_object_t
*
obj
);
/* NOTE: this function is a *temporary* convenience.
* See the vlc_object_alive() documentation for a better alternative.
*/
static
inline
vlc_bool_t
__vlc_object_lock_and_wait
(
vlc_object_t
*
obj
)
{
vlc_bool_t
b
=
VLC_TRUE
;
vlc_object_lock
(
obj
);
if
(
vlc_object_alive
(
obj
)
)
b
=
vlc_object_wait
(
obj
);
vlc_object_unlock
(
obj
);
return
b
;
}
#define vlc_object_lock_and_wait( obj ) \
__vlc_object_lock_and_wait( VLC_OBJECT(obj) )
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