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
32c21f40
Commit
32c21f40
authored
Sep 08, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve documentation
parent
8161681d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
16 deletions
+12
-16
src/misc/objects.c
src/misc/objects.c
+12
-16
No files found.
src/misc/objects.c
View file @
32c21f40
...
...
@@ -464,16 +464,14 @@ int __vlc_object_waitpipe( vlc_object_t *obj )
/**
*
Waits for the object to be signaled (using vlc_object_signal()
).
*
It is assumed that the caller has locked the object. This function will
*
unlock the object, and lock it again before returning
.
*
If the object was signaled before the caller locked the object, it is
*
undefined whether the signal will be lost or will wake the process
.
*
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.
*
* @return true if the object is dying and should terminate.
*/
void
__vlc_object_wait
(
vlc_object_t
*
obj
)
{
...
...
@@ -484,11 +482,9 @@ void __vlc_object_wait( vlc_object_t *obj )
/**
* Waits for the object to be signaled (using vlc_object_signal()), or for
* a timer to expire. It is asserted that the caller holds the object lock.
* Same as vlc_object_wait(), with an additional time-out.
*
* This function is a cancellation point. In case of cancellation, the object
* will be in locked state.
* @param deadline <b>absolute</b> time-out (using the same clock as mdate())
*
* @return 0 if the object was signaled before the timer expiration, or
* ETIMEDOUT if the timer expired without any signal.
...
...
@@ -502,11 +498,11 @@ int __vlc_object_timedwait( vlc_object_t *obj, mtime_t deadline )
/**
*
Signals an object for which the lock is held.
*
At least one thread currently sleeping in vlc_object_wait() or
*
vlc_object_timedwait() will wake up, assuming that there is at least one
*
such thread in the first place. Otherwise, it is undefined whether th
e
*
signal will be lost or will wake up one or more thread later
.
*
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 untangl
e
*
objects and threads. Use vlc_cond_wait() instead
.
*/
void
__vlc_object_signal_unlocked
(
vlc_object_t
*
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