goto

Tommy Thorn (Tommy.Thorn@irisa.fr)
Fri, 21 Jul 1995 16:22:55 +0200


Linus Torvalds wrote/ecrit/skrev:
| + *
| + * The goto is "interesting".
| *
......
| + cli();
| + switch (current->state) {
| + case TASK_INTERRUPTIBLE:
| + if (current->signal & ~current->blocked)
| + goto makerunnable;
| + timeout = current->timeout;
| + if (timeout && (timeout <= jiffies)) {
| + current->timeout = 0;
| + timeout = 0;
| + makerunnable:
| + current->state = TASK_RUNNING;
| + break;
| + }
| + default:
| + del_from_runqueue(current);
| + case TASK_RUNNING:
| + }

I suppose this is the Linus Torvalds version of Fermats Last Theorem :-)
(Leaving people wondering "why" for hundreds of years...)

/Tommy