Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
The default alias name is now build from the name of the host of the process and...
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 11 Aug 2008 12:10:18 +0000 (12:10 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 11 Aug 2008 12:10:18 +0000 (12:10 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5892 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/cxx/Process.cxx

index 856ce5e..a43b2ea 100644 (file)
@@ -355,7 +355,7 @@ namespace SimGrid
                void Process::sendTask(Task* task) \r
                throw(BadAllocException, MsgException)\r
                {\r
                void Process::sendTask(Task* task) \r
                throw(BadAllocException, MsgException)\r
                {\r
-                       char* alias = (char*)calloc( strlen(Host::currentHost().getName()) + strlen(nativeProcess->name) + 2, sizeof(char));\r
+                       char* alias = (char*)calloc( strlen(this->getHost().getName()) + strlen(nativeProcess->name) + 2, sizeof(char));\r
                                \r
                        if(!alias)\r
                                throw BadAllocException("alias");\r
                                \r
                        if(!alias)\r
                                throw BadAllocException("alias");\r
@@ -378,7 +378,7 @@ namespace SimGrid
                        if(timeout < 0 && timeout !=-1.0)\r
                                throw InvalidArgumentException("timeout (the timeout value must not be negative and different than -1.0)");\r
                        \r
                        if(timeout < 0 && timeout !=-1.0)\r
                                throw InvalidArgumentException("timeout (the timeout value must not be negative and different than -1.0)");\r
                        \r
-                       char* alias = (char*)calloc(strlen(Host::currentHost().getName()) + strlen(nativeProcess->name) + 2 , sizeof(char));\r
+                       char* alias = (char*)calloc( strlen(this->getHost().getName()) + strlen(nativeProcess->name) + 2, sizeof(char));\r
                                \r
                        if(!alias)\r
                                throw BadAllocException("alias");\r
                                \r
                        if(!alias)\r
                                throw BadAllocException("alias");\r
@@ -414,7 +414,7 @@ namespace SimGrid
                throw(BadAllocException, MsgException)\r
                {\r
                        \r
                throw(BadAllocException, MsgException)\r
                {\r
                        \r
-                       char* alias = (char*)calloc(strlen(Host::currentHost().getName()) + strlen(nativeProcess->name) + 2, sizeof(char));\r
+                       char* alias = (char*)calloc( strlen(this->getHost().getName()) + strlen(nativeProcess->name) + 2, sizeof(char));\r
                        \r
                        if(!alias)\r
                                throw BadAllocException("alias");       \r
                        \r
                        if(!alias)\r
                                throw BadAllocException("alias");       \r
@@ -463,7 +463,7 @@ namespace SimGrid
                                throw InvalidArgumentException("timeout (the timeout value must not be negative and different than -1.0)");\r
                                \r
                        \r
                                throw InvalidArgumentException("timeout (the timeout value must not be negative and different than -1.0)");\r
                                \r
                        \r
-                       char* alias = (char*)calloc(strlen(Host::currentHost().getName()) + strlen(nativeProcess->name) + 2,  sizeof(char));\r
+                       char* alias = (char*)calloc( strlen(this->getHost().getName()) + strlen(nativeProcess->name) + 2, sizeof(char));\r
                        \r
                        if(!alias)\r
                                throw BadAllocException("alias");\r
                        \r
                        if(!alias)\r
                                throw BadAllocException("alias");\r
@@ -511,7 +511,7 @@ namespace SimGrid
                        if(timeout < 0 && timeout !=-1.0)\r
                                throw InvalidArgumentException("timeout (the timeout value must not be negative and different than -1.0)");\r
                        \r
                        if(timeout < 0 && timeout !=-1.0)\r
                                throw InvalidArgumentException("timeout (the timeout value must not be negative and different than -1.0)");\r
                        \r
-                       char* alias = (char*)calloc(strlen(Host::currentHost().getName()) + strlen(nativeProcess->name) + 2, sizeof(char));\r
+                       char* alias = (char*)calloc( strlen(this->getHost().getName()) + strlen(nativeProcess->name) + 2, sizeof(char));\r
                        \r
                        if(!alias)\r
                                throw BadAllocException("alias");\r
                        \r
                        if(!alias)\r
                                throw BadAllocException("alias");\r
@@ -551,7 +551,7 @@ namespace SimGrid
                Task* Process::receiveTask(const Host& rHost) \r
                throw(BadAllocException, MsgException)\r
                {\r
                Task* Process::receiveTask(const Host& rHost) \r
                throw(BadAllocException, MsgException)\r
                {\r
-                       char* alias = (char*)calloc(strlen(Host::currentHost().getName()) + strlen(nativeProcess->name) + 2, sizeof(char));\r
+                       char* alias = (char*)calloc( strlen(this->getHost().getName()) + strlen(nativeProcess->name) + 2, sizeof(char));\r
                        \r
                        if(!alias)\r
                                throw BadAllocException("alias");\r
                        \r
                        if(!alias)\r
                                throw BadAllocException("alias");\r