CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Task Manager

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
mbradley



Joined: 11 Jul 2009
Posts: 118
Location: California, USA

View user's profile Send private message Visit poster's website

Task Manager
PostPosted: Wed Dec 09, 2009 3:50 am     Reply with quote

I just wanted to share something I just wrote up over the last couple days.

I needed to handle a few tasks, and break up some large ones into a state machine.

I came up with something I call Queued tasks, it uses a timer to queue the task. When a task is queued, if the task has a higher priority, it will jump ahead of any task with a lower priority.

This is all done with the CCS compiler, and is currently in use in a project, so I know it works. At least in the capacity I am using it.

Take a look: http://www.mculabs.com/drivers/qtask.html
_________________
Michael Bradley
www.mculabs.com
Open Drivers and Projects
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group