Re: Task API

new topic     » goto parent     » topic index » view thread      » older message » newer message

Vincent wrote:
> > By the way, something needed by Language War,
> > and other games, is the ability to stop the scheduler's clock,
> > and restart it later. In LW for instance, the user is allowed
> > to freeze the game (to answer the phone etc.). When he resumes
> > the game a few minutes later, it's not good for all 
> > real-time tasks to suddenly be ready to run.
> 
> Would this be another routine or two? Perhaps something like task_reset()
> and/or task_stop()?
> 
> > 
> > Regards,
> >    Rob Craig

I haven't decided.
It could be two calls like: task_clock_stop() ... task_clock_resume()
Or it could be one call: task_clock_shift(atom seconds)
where the application would keep track of how many
seconds went by while the user was on the phone,
and tell me to shift the scheduler's clock accordingly.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu