SYNOPSIS
#include <hal.h>
int hal_add_funct_to_thread(const char* funct_name, const char* thread_name, int position);
int hal_del_funct_from_thread(const char* funct_name, const char* thread_name);
ARGUMENTE
- funct_name
-
Der Name der Funktion.
- thread_name
-
Der Name des Threads.
- Position
-
Die gewünschte Position innerhalb des Threads. Damit wird festgelegt, wann die Funktion im Verhältnis zu anderen Funktionen im Thread ausgeführt wird. Eine positive Zahl gibt die gewünschte Position an, gemessen vom Anfang des Threads, eine negative Zahl wird vom Ende aus gemessen. So bedeutet +1, dass diese Funktion als erste ausgeführt wird, +5 bedeutet, dass sie als fünfte ausgeführt wird, -2 bedeutet, dass sie als vorletzte ausgeführt wird, und -1 bedeutet, dass sie als letzte ausgeführt wird. Null ist illegal.
BESCHREIBUNG
The function hal_add_funct_to_thread() adds another function that is exported by a realtime HAL component to a realtime thread. This determines how often and in what order functions are executed.
The function hal_del_funct_from_thread() removes a function from a thread.
RETURN VALUE
Gibt einen HAL-Statuscode zurück.
REALTIME CONSIDERATIONS
Aufruf nur aus dem Echtzeit-Init-Code, nicht aus dem Nicht-Echzeit-Code- oder anderem Echtzeit-Code.
SIEHE AUCH
hal_thread_new(3), hal_export_funct(3)