[rtems commit] score: Add _Thread_Get_maximum_internal_threads()

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Feb 7 07:55:43 UTC 2014


On 2014-02-07 08:49, Chris Johns wrote:
> On 4/02/2014 8:01 pm, Sebastian Huber wrote:
>>
>> +RTEMS_INLINE_ROUTINE uint32_t _Thread_Get_maximum_internal_threads(void)
>> +{
>> +  uint32_t maximum_internal_threads = 0;
>> +
>> +  /* Idle threads */
>> +  maximum_internal_threads += rtems_configuration_get_maximum_processors();
>> +
>
> Why is the code setting the local variable to 0 then doing the addition ?

Hm, this was a copy and paste from an earlier version which did three additions 
like this in row.

What about the attached patch?

-- 
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 --------------
A non-text attachment was scrubbed...
Name: 0001-score-Format-_Thread_Get_maximum_internal_threads.patch
Type: text/x-patch
Size: 1050 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/devel/attachments/20140207/f9d67a07/attachment-0001.bin>


More information about the devel mailing list