Paparazzi UAS
v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
threads.c
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2026 Freek van Tienen <freek.v.tienen@gmail.com>
3
*
4
* This file is part of paparazzi
5
*
6
* paparazzi is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2, or (at your option)
9
* any later version.
10
*
11
* paparazzi is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with paparazzi; see the file COPYING. If not, see
18
* <http://www.gnu.org/licenses/>.
19
*/
20
25
26
#include "
modules/core/threads.h
"
27
28
void
pprz_thread_periodic
(
void
)
29
{
30
// The main thread is the one running the periodic functions (the init can run in another one, e.g. NPS)
31
static
bool
main_set =
false
;
32
if
(!main_set) {
33
pprz_thread_init_main
();
34
main_set =
true
;
35
}
36
}
pprz_thread_init_main
void pprz_thread_init_main(void)
Remember the calling thread as the main thread, the one running the periodic and event functions of t...
Definition
threads_arch.c:64
pprz_thread_periodic
void pprz_thread_periodic(void)
Set the main thread on the first call (the thread running the periodic functions).
Definition
threads.c:28
threads.h
sw
airborne
modules
core
threads.c
Generated on
for Paparazzi UAS by
1.15.0