[Bug 1212] timeslice not working after task mode change

rtems-bugs at rtems.org rtems-bugs at rtems.org
Fri Jan 12 16:01:44 UTC 2007


------- Comment #2 from xudong.guan at criticalsoftware.com  2007-01-12 10:01 -------
Forget to mention that the above source code has to be compiled without any
kind of optimization to work correctly (i.e. gcc -O0). Some optimizations, like
sparc-gcc -O2, will assign a register to the variable "turn", which prevent the
thread from re-read the possibly changed "turn" variable from memory.

Configure bugmail: http://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the bugs mailing list