git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@609 331e1502-861f-0410-8da2-ba01fb791d7f
30 lines
650 B
C++
30 lines
650 B
C++
// "service.h"
|
|
|
|
// (c) OPAC Team, LIFL, August 2005
|
|
|
|
/*
|
|
Contact: paradiseo-help@lists.gforge.inria.fr
|
|
*/
|
|
|
|
#include "../../core/service.h"
|
|
#include "../../core/messaging.h"
|
|
#include "node.h"
|
|
#include "tags.h"
|
|
#include "send.h"
|
|
#include "scheduler.h"
|
|
|
|
void Service :: requestResourceRequest (unsigned __how_many) {
|
|
|
|
num_sent_rr = __how_many;
|
|
for (unsigned i = 0; i < __how_many; i ++)
|
|
send (this, my_node -> rk_sched, SCHED_REQUEST_TAG);
|
|
}
|
|
|
|
void Service :: packResourceRequest () {
|
|
|
|
SCHED_REQUEST req;
|
|
req.first = getNodeRank ();
|
|
req.second = getKey ();
|
|
// printf ("demande de ressource pour %d\n", req.second);
|
|
:: pack (req);
|
|
}
|