Manager.h

Go to the documentation of this file.
00001 #ifndef MANAGER_H
00002 #define MANAGER_H
00003 
00004 #include <unistd.h>
00005 #include <string.h>
00006 #include <dlfcn.h>
00007 #include <pvm3.h>
00008 #include "Layout.h"
00009 
00010 
00011 // Coutinho: If a c++ app use this file, tell it that these functions are in C
00012 #ifdef __cplusplus
00013 extern "C" {
00014 #endif
00015 
00016 
00017 #define I_AM_THE_MANAGER (pvm_parent() == PvmNoParent) ///< tells if this process is the manager
00018 
00019 
00020 /* user functions *************/
00021 Layout *initDs(char *confFile, int argc, char **argv);
00022 int appendWork(Layout *layout, void *work, unsigned int workSize);
00023 int finalizeDs(Layout *layout);
00024 /* end user functions *********/
00025 
00026 void handleSigterm(int signal);
00027 //static void spawnAllFilter(Layout *layout);
00028 //static void killAllFilters(Layout *layout);
00029 //static void sendFiltersData(Layout *layout);
00030 //static Layout *initManager(char *confFile, int argc, char **argv);
00031 Layout *initDs(char *confFile, int argc, char **argv);
00032 int compareTaskId(const void *a, const void *b);
00033 int replaceCrashedHost(Layout *layout, FilterSpec *pCrashedFilter, int crashedInstance);
00034 
00035 
00036 #ifdef __cplusplus
00037 }
00038 #endif
00039 
00040 
00041 #endif

Generated on Tue Jan 17 19:18:38 2006 for Void by  doxygen 1.4.6