On Jul 2, 2011, at 3:06 PM, Philip Guenther wrote: > In libpthread, if the scheduler picks the current thread as the next to > run, it still does the full save+restore of errno, FPU, and regs, saving > them and then restoring the same values again. That's kinda silly, so > jump around that if switching to the current thread. > > oks?
Looks reasonable to me. I have not looked at all the assembler code to see if there are side effects of task switching to yourself that some other part of the code depends upon. /\/\arc
