- Main Page
- Namespaces
- Classes
- Files

- Search for |

# runner.cpp

    00001 // "runner.cpp"
    00002
    00003 // (c) OPAC Team, LIFL, August 2005
    00004
    00005 /*
    00006    Contact: paradiseo-help@lists.gforge.inria.fr
    00007 */
    00008
    00009 #include "../../core/messaging.h"
    00010 #include "../../core/runner.h"
    00011 #include "node.h"
    00012 #include "send.h"
    00013 #include "tags.h"
    00014 #include "schema.h"
    00015
    00016 bool Runner :: isLocal () {
    00017
    00018   for (unsigned i = 0; i < my_node -> id_run.size (); i ++)
    00019     if (my_node -> id_run [i] == id)
    00020       return true;
    00021   return false;
    00022 }
    00023
    00024 void Runner :: packTermination () {
    00025
    00026   pack (id);
    00027 }
    00028
    00029 void Runner :: terminate () {
    00030
    00031   sendToAll (this, RUNNER_STOP_TAG);
    00032 }
    00033