[ECOS] a confusion regarding role of schedlock
Brij Bihari Pandey
fuzzhead012@yahoo.com
Fri Sep 13 02:02:00 GMT 2002
Thanks Rich,
but my confusion is about - we took sched lock as we
didn't want the threadswitch to happen, yet because of
reschedule the threadswitch will happen.
brij
> > cyg_bool Cyg_Counting_Semaphore::wait()
> > {
> > -- ..... --
> > // Prevent preemption
> > Cyg_Scheduler::lock();
> > -- ..... --
> > // Allow other threads to run
> > Cyg_Scheduler::reschedule();
> > -- ..... --
> > // Unlock the scheduler
> > Cyg_Scheduler::unlock();
> > -- ..... --
> > }
__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
More information about the Ecos-discuss
mailing list