Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
f2da8f85
Commit
f2da8f85
authored
Nov 16, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document block_FifoGet and block_FifoShow
parent
d7899cfa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
src/misc/block.c
src/misc/block.c
+17
-0
No files found.
src/misc/block.c
View file @
f2da8f85
...
...
@@ -601,6 +601,12 @@ void block_FifoWake( block_fifo_t *p_fifo )
vlc_mutex_unlock
(
&
p_fifo
->
lock
);
}
/**
* Dequeue the first block from the FIFO. If necessary, wait until there is
* one block in the queue. This function is (always) cancellation point.
*
* @return a valid block, or NULL if block_FifoWake() was called.
*/
block_t
*
block_FifoGet
(
block_fifo_t
*
p_fifo
)
{
block_t
*
b
;
...
...
@@ -643,6 +649,17 @@ block_t *block_FifoGet( block_fifo_t *p_fifo )
return
b
;
}
/**
* Peeks the first block in the FIFO.
* If necessary, wait until there is one block.
* This function is (always) a cancellation point.
*
* @warning This function leaves the block in the FIFO.
* You need to protect against concurrent threads who could dequeue the block.
* Preferrably, there should be only one thread reading from the FIFO.
*
* @return a valid block.
*/
block_t
*
block_FifoShow
(
block_fifo_t
*
p_fifo
)
{
block_t
*
b
;
...
...
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