Interrupt on/off control

Task related topics

Interrupt on/off control

Postby dbwalker » Fri Oct 05, 2012 5:49 pm

What was the reasoning behind disabling interrupts when searching for the next task to run? I understand that you may want to change the state of a task in an ISR, but by disabling interrupts, you always defer it until the end. It would seem to me that leaving the interrupts disabled would possibly cause a task to be marked running a little bit sooner, but wouldn't cause any other bad side effects.

Thanks,
David Walker
dbwalker
 
Posts: 1
Joined: Fri Aug 03, 2012 9:12 pm

Re: Interrupt on/off control

Postby peter » Sun Oct 07, 2012 5:54 pm

Yes, you are right. There are no good reason to disable interrupts there. I will remove it.
/Peter
peter
Site Admin
 
Posts: 24
Joined: Wed Mar 07, 2012 9:32 am


Return to Tasks

Who is online

Users browsing this forum: No registered users and 1 guest

cron