mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
docs: add some more doc about the threads
This commit is contained in:
parent
c4cd8fa73d
commit
c59820493f
1 changed files with 16 additions and 0 deletions
|
|
@ -6,6 +6,22 @@ Graph are constructed from linked nodes together with their ports. This
|
||||||
results in a dependency graph between nodes. Special care is taken for
|
results in a dependency graph between nodes. Special care is taken for
|
||||||
loopback links so that the graph remains a directed graph.
|
loopback links so that the graph remains a directed graph.
|
||||||
|
|
||||||
|
# Processing threads
|
||||||
|
|
||||||
|
The server (and clients) have two processing threads:
|
||||||
|
|
||||||
|
- A main thread that will do all IPC with clients and server and configures the
|
||||||
|
nodes in the graph for processing.
|
||||||
|
- A (or more) data processing thread that only does the data processing.
|
||||||
|
|
||||||
|
|
||||||
|
The data processing threads are given realtime priority and are designed to
|
||||||
|
run with as little overhead as possible. All of the node resources such as
|
||||||
|
buffers, io areas and metadata will be set up in shared memory before the
|
||||||
|
node is scheduled to run.
|
||||||
|
|
||||||
|
This document describes the processing that happens in the data processing
|
||||||
|
thread after the main-thread has configured it.
|
||||||
|
|
||||||
# Nodes
|
# Nodes
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue