This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
about timeslice
- To: "ecos-discuss" <ecos-discuss at sourceware dot cygnus dot com>
- Subject: [ECOS] about timeslice
- From: "ylyuan" <ylyuan at davform dot com>
- Date: Mon, 4 Jun 2001 09:25:33 +0800
Hi,in the DSR of RTC:
void Cyg_RealTimeClock::dsr(cyg_vector vector, cyg_ucount32 count, CYG_ADDRWORD data)
{
......
rtc->tick( count );
#ifdef CYGSEM_KERNEL_SCHED_TIMESLICE
#if 0 == CYGINT_KERNEL_SCHEDULER_UNIQUE_PRIORITIES
// If timeslicing is enabled, call the scheduler to
// handle it. But not if we have unique priorities.
Cyg_Scheduler::scheduler.timeslice();
#endif
#endif
......
}
if the parameter of count isn't 1,why function of timeslice only subtract one but the parameter of rtc->tick is count?
Thanks a lot!