X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Fcoop.c;h=4b2e6b88a5c303598391e776789e4007f67e7681;hb=274910d36c7db1d556864384534f43c69d1bae19;hp=b62a02e43ddb0bedc48336e0675bbc1f81180617;hpb=87302355709b6d5ac0592024b84207ba86baa82e;p=bertos.git diff --git a/bertos/kern/coop.c b/bertos/kern/coop.c index b62a02e4..4b2e6b88 100644 --- a/bertos/kern/coop.c +++ b/bertos/kern/coop.c @@ -27,11 +27,10 @@ * the GNU General Public License. * * Copyright 2001, 2004, 2008 Develer S.r.l. (http://www.develer.com/) - * Copyright 1999, 2000, 2001 Bernie Innocenti + * Copyright 1999, 2000, 2001, 2008 Bernie Innocenti * --> * - * \brief Simple realtime multitasking scheduler. - * Context switching is only done cooperatively. + * \brief Simple cooperative multitasking scheduler. * * \version $Id: proc.c 1616 2008-08-10 19:41:26Z bernie $ * \author Bernie Innocenti @@ -133,7 +132,7 @@ void proc_schedule(void) /** * Co-operative context switch */ -void proc_switch(void) +void proc_yield(void) { ATOMIC(SCHED_ENQUEUE(CurrentProcess));