/***************************************************************************
* Copyright (C) 2020 - 2025 by Federico Amedeo Izzo IU2NUO, *
* Niccolò Izzo IU2KIN *
* Frederik Saraci IU2NRO *
* Silvano Seva IU2KWO *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, see *
***************************************************************************/
#ifndef THREADS_H
#define THREADS_H
#include
/**
* Threads' stack sizes
*/
#define UI_THREAD_STKSIZE 2048
#define RTX_THREAD_STKSIZE 512
#define CODEC2_THREAD_STKSIZE 16384
#define AUDIO_THREAD_STKSIZE 512
/**
* Thread priority levels, UNIX-like: lower level, higher thread priority
*/
#ifdef _MIOSIX
#define THREAD_PRIO_RT 0
#define THREAD_PRIO_HIGH 1
#define THREAD_PRIO_NORMAL 2
#define THREAD_PRIO_LOW 3
#endif
/**
* Spawn all the threads for the various functionalities.
*/
void create_threads();
#endif /* THREADS_H */