[PATCH 2/2] posix: pthread_exit() is a no-return function

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Mar 22 14:38:26 UTC 2016


There is a problem if we call pthread_exit() in interrupt context, so we 
need a new fatal error.

On 22/03/16 15:30, Joel Sherrill wrote:
> Looks good. I have a patch to newlib to add the annotation in 
> pthread.h. I will
> submit it for review today.
>
> On Tue, Mar 22, 2016 at 1:25 AM, Sebastian Huber 
> <sebastian.huber at embedded-brains.de 
> <mailto:sebastian.huber at embedded-brains.de>> wrote:
>
>     ---
>      cpukit/posix/src/pthreadexit.c | 1 +
>      1 file changed, 1 insertion(+)
>
>     diff --git a/cpukit/posix/src/pthreadexit.c
>     b/cpukit/posix/src/pthreadexit.c
>     index 6b3a09a..6f8a7a7 100644
>     --- a/cpukit/posix/src/pthreadexit.c
>     +++ b/cpukit/posix/src/pthreadexit.c
>     @@ -75,4 +75,5 @@ void pthread_exit(
>      )
>      {
>        _POSIX_Thread_Exit( _Thread_Get_executing(), value_ptr );
>     +  RTEMS_UNREACHABLE();
>      }
>     --
>     1.8.4.5
>
>     _______________________________________________
>     devel mailing list
>     devel at rtems.org <mailto:devel at rtems.org>
>     http://lists.rtems.org/mailman/listinfo/devel
>
>

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list