Job Executer
Fin Christensen edited this page May 2, 2015
·
1 revision
namespace FreezingArcher.Core
The JobExecuter
executes jobs of type Action
. This can either be done in a sequential, single threaded way or in a
parallel, multi threaded way. The job executer handles a NeedsReexec
event if a job needs to be executed again for
some reason.
List<Action> jobs = new List<Action> ();
// add jobs
...
exec = new JobExecuter ();
exec.InsertJobs (jobs);
// handle if the job executer recognizes that some jobs need to be executed again
exec.DoReexec += () => { ExecAgain = true; };
exec.ExecJobsParallel (Environment.ProcessorCount);
...
while (run)
{
...
if (ExecAgain)
exec.ExecJobsParallel (Environment.ProcessorCount);
...
}
- Application
- Renderer
- Physics
-
Sound
- [[Loading a
Sound
and creating aSource
|Sound#loading-a-Sound-and-creating-a-Source]]
- [[Loading a
- Input Management
- Update Management
- Data Structures
- Localization
- Messaging System
- Logger
- Command Line Interface
- Config File
- Object Recycling
- Dynamic Class Building
- Job Executer