scheduler.h

00001 // "scheduler.h"
00002 
00003 // (c) OPAC Team, LIFL, August 2005
00004 
00005 /* 
00006    Contact: paradiseo-help@lists.gforge.inria.fr
00007 */
00008 
00009 #ifndef __scheduler_h
00010 #define __scheduler_h
00011 
00012 #include <utility>
00013 
00014 #include "schema.h"
00015 #include "worker.h"
00016 
00017 typedef std :: pair <RANK_ID, WORKER_ID> SCHED_RESOURCE;
00018 
00019 typedef std :: pair <RANK_ID, SERVICE_ID> SCHED_REQUEST;
00020 
00021 /* Initializing the list of available workers */
00022 extern void initScheduler ();
00023 
00024 /* Processing a resource request from a service */
00025 extern void unpackResourceRequest ();
00026 
00027 /* Being known a worker is now idle :-) */
00028 extern void unpackTaskDone (); 
00029 
00030 extern bool allResourcesFree ();
00031 
00032 #endif

Generated on Thu Jul 5 13:43:30 2007 for ParadisEO-PEO by  doxygen 1.4.7