[rtems commit] posix: Change pthread_once to be SMP safe.

Chris Johns chrisj at rtems.org
Wed Aug 14 00:45:15 UTC 2013


Joel Sherrill wrote:
> You didn't remove both task mode calls as best I can tell on my phone.
>
> -  if ( !once_control->init_executed ) {
> -    rtems_mode saveMode;
> -    rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK,&saveMode);

and

> -    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK,&saveMode);

Looks ok to me on my desktop. :)

Chris



More information about the devel mailing list