ud3tn/include
Felix Walter 1237eaa2db Remove heap-allocated Task_t
`hal_task_create` returned a reference to the new task allocated on the
heap via `malloc`. We commonly used the pattern to `free` this reference
from the new thread which, however, could result in race conditions and
other synchronization issues. We added a fix using a semaphore in the
application agent, but this would have been needed in other places (CLA,
...) as well. As we do not make use of the task reference anywhere
besides in the CLA for error handling, we can remove the heap-allocated
value altogether and replace it with an `enum ud3tn_result` to simplify
things and circumvent the named synchronization issues.

In the case of the CLA function `cla_link_init`, logic is introduced to
request the RX task to exit immediately in case the TX task cannot be
launched.

Signed-off-by: Felix Walter <felix.walter@d3tn.com>
2023-05-10 17:23:55 +02:00
..
aap Remove bundle ID and storage and replace the ID by the bundle pointer 2022-12-07 17:42:21 +01:00
agents Merge Bundle Processor and Router Task 2022-12-07 21:02:36 +01:00
bundle6 Insert SPDX license expression comments into our .c, .h, .py, and .sh code 2022-02-20 16:24:38 +01:00
bundle7 bundle7: Calculate ipn EID size using 64 bit integers 2022-11-21 09:41:03 +01:00
cla Remove heap-allocated Task_t 2023-05-10 17:23:55 +02:00
platform Remove heap-allocated Task_t 2023-05-10 17:23:55 +02:00
spp Insert SPDX license expression comments into our .c, .h, .py, and .sh code 2022-02-20 16:24:38 +01:00
ud3tn Remove heap-allocated Task_t 2023-05-10 17:23:55 +02:00