[PATCH] Disable thread cancellation support for RTEMS

Sebastian Huber sebastian.huber@embedded-brains.de
Fri Mar 22 15:56:00 GMT 2013


On 03/22/2013 04:09 PM, Corinna Vinschen wrote:
> On Mar 22 15:47, Sebastian Huber wrote:
>> Use a define to manage the stdio thread cancellation support.  Disable
>> the thread cancellation support for RTEMS.  In RTEMS the availability of
>> POSIX threads is optional and depends on a configuration option.  To
>> support all RTEMS configurations we have to drop the thread cancellation
>> support.  A long term solution has to be developed in RTEMS to deal with
>> this.  Once this is done, we can enable the support in Newlib again.
>
> Wouldn't it be much cleaner code-wise to override the pthread_setcancelstate
> function with an RTEMS-specific dummy if cancellation is not supported?

This could be an option.  Makes the usage of pthread_setcancelstate sense if no 
locks are used?

-- 
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@embedded-brains.de
PGP     : Public key available on request.

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



More information about the Newlib mailing list