Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
graph_thread.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2019-2021 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3/*
4 * This file incorporates work covered by the following copyright and
5 * permission notice:
6 *
7 * ---
8 *
9 * Copyright (C) 2017, 2019 Robin Gareus <robin@gareus.org>
10 *
11 * This program is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program. If not, see <https://www.gnu.org/licenses/>.
23 *
24 * ---
25 */
26
33#ifndef __AUDIO_GRAPH_THREAD_H__
34#define __AUDIO_GRAPH_THREAD_H__
35
36#include "zrythm-config.h"
37
38#include "utils/types.h"
39
40#include "gtk_wrapper.h"
41#include <pthread.h>
42
43#ifdef HAVE_LSP_DSP
44# include <lsp-plug.in/dsp/dsp.h>
45#endif
46
47typedef struct Graph Graph;
48
55typedef struct GraphThread
56{
57 pthread_t pthread;
58
65 int id;
66
69
70#ifdef HAVE_LSP_DSP
72 lsp::dsp::context_t lsp_ctx;
73#endif
75
84graph_thread_new (const int id, const bool is_main, Graph * graph);
85
90#endif
GraphThread * graph_thread_new(const int id, const bool is_main, Graph *graph)
Creates a thread.
int id
Thread index in zrythm.
Graph * graph
Pointer back to the graph.
Graph.
Definition graph.h:71
Custom types.