From 8a864bc62cd57fbd6dd35141e5beb582de9b7bff Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 19 Jul 2022 10:38:12 +0200 Subject: score: Use PTHREAD_CANCELED for _Thread_Cancel() The rtems_task_delete() directive is basically just a combined pthread_cancel() and pthread_join(). In addition, it removes the PTHREAD_DETACHED state. The exit value returned by pthread_join() of threads cancelled by rtems_task_delete() should reflect this by getting a PTHREAD_CANCELED value instead of NULL which could be a normal exit value. Close #4680. --- cpukit/include/rtems/score/threadimpl.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'cpukit/include/rtems/score/threadimpl.h') diff --git a/cpukit/include/rtems/score/threadimpl.h b/cpukit/include/rtems/score/threadimpl.h index e6e77b195c..638815237f 100644 --- a/cpukit/include/rtems/score/threadimpl.h +++ b/cpukit/include/rtems/score/threadimpl.h @@ -429,14 +429,11 @@ typedef enum { * @param[in, out] life_states_to_clear is the set of thread life states to * clear for the thread to cancel. - - * @param exit_value is the exit value for the thread to cancel. */ Thread_Cancel_state _Thread_Cancel( Thread_Control *the_thread, Thread_Control *executing, - Thread_Life_state life_states_to_clear, - void *exit_value + Thread_Life_state life_states_to_clear ); /** -- cgit v1.2.3