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

Joel Sherrill joel at rtems.org
Tue Mar 22 15:31:53 UTC 2016


On Tue, Mar 22, 2016 at 9:38 AM, Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:

> There is a problem if we call pthread_exit() in interrupt context, so we
> need a new fatal error.
>
> Do we catch the cases for inherit/ceiling mutexes also? You shouldn't use
them in interrupt
context either.


> 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.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20160322/4454fc21/attachment-0002.html>


More information about the devel mailing list