00001
00002
00003
00004
00005
00006
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
00029 :: pack (req);
00030 }