예제 #1
0
파일: fp_rr.c 프로젝트: Neymello/Composite
struct sched_thd *schedule(struct sched_thd *t)
{
	struct sched_thd *n;

	assert(!t || !sched_thd_member(t));
	n = fp_get_highest_prio();
	assert(n);
	if (n != t) return n;
	assert(t);
	return fp_get_second_highest_prio(n);
}
예제 #2
0
struct sched_thd *schedule(struct sched_thd *t)
{
	struct sched_thd *n;

	assert(!t || !sched_thd_member(t));
	/* printc("get the highest_prio ---> "); */
	n = fp_get_highest_prio();
	assert(n);
	if (n != t) return n;
	assert(t);
	/* printc("get the 2nd highest_prio ---> "); */
	return fp_get_second_highest_prio(n);
}