You need to sign in or sign up before continuing.
Optional thread detach
-
Make detached threads optional
Adds a parameter to the
hal_task_create()
function to allow non-detached threads and a second parameter to pass the thread identifier. -
Replace
sigaction
1 exit handler bysigwait
2In order to properly clean up all resources allocated by threads, we need to join the non-detached threads. This is not possible within the
sigaction
exit handler function. For this reason, the termination logic is changed to usesigwait
. -
Terminate all CLAs gracefully
To enable CLA implementers to properly clean up the allocated resources, a virtual function
cla_terminate()
is added to the CLA interface, which is called at process termination for all registered CLAs.
See also #170 which is partially addressed by this MR.
Edited by Felix Walter