[rtems commit] score: Add _Thread_Get_maximum_internal_threads()
Chris Johns
chrisj at rtems.org
Fri Feb 7 07:49:23 UTC 2014
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 ?
Chris
More information about the devel
mailing list