- Main Page
- Namespaces
- Classes
- Files

- Search for |

# 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