- Main Page
- Namespaces
- Classes
- Files

- Search for |

# service.cpp

    00001 // "service.h"
    00002
    00003 // (c) OPAC Team, LIFL, August 2005
    00004
    00005 /*
    00006    Contact: paradiseo-help@lists.gforge.inria.fr
    00007 */
    00008
    00009 #include "../../core/service.h"
    00010 #include "../../core/messaging.h"
    00011 #include "node.h"
    00012 #include "tags.h"
    00013 #include "send.h"
    00014 #include "scheduler.h"
    00015
    00016 void Service :: requestResourceRequest (unsigned __how_many) {
    00017
    00018   num_sent_rr = __how_many;
    00019   for (unsigned i = 0; i < __how_many; i ++)
    00020     send (this, my_node -> rk_sched, SCHED_REQUEST_TAG);
    00021 }
    00022
    00023 void Service :: packResourceRequest () {
    00024
    00025   SCHED_REQUEST req;
    00026   req.first = getNodeRank ();
    00027   req.second = getKey ();
    00028   //  printf ("demande de ressource pour %d\n", req.second);
    00029   :: pack (req);
    00030 }