From 0014ed4ef5b8ae67290c38883d123ab98e418ed3 Mon Sep 17 00:00:00 2001 From: cherierm Date: Mon, 11 Aug 2008 12:10:18 +0000 Subject: [PATCH] The default alias name is now build from the name of the host of the process and its name (:) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5892 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/cxx/Process.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cxx/Process.cxx b/src/cxx/Process.cxx index 856ce5e842..a43b2ea4e5 100644 --- a/src/cxx/Process.cxx +++ b/src/cxx/Process.cxx @@ -355,7 +355,7 @@ namespace SimGrid void Process::sendTask(Task* task) throw(BadAllocException, MsgException) { - char* alias = (char*)calloc( strlen(Host::currentHost().getName()) + strlen(nativeProcess->name) + 2, sizeof(char)); + char* alias = (char*)calloc( strlen(this->getHost().getName()) + strlen(nativeProcess->name) + 2, sizeof(char)); if(!alias) throw BadAllocException("alias"); @@ -378,7 +378,7 @@ namespace SimGrid if(timeout < 0 && timeout !=-1.0) throw InvalidArgumentException("timeout (the timeout value must not be negative and different than -1.0)"); - char* alias = (char*)calloc(strlen(Host::currentHost().getName()) + strlen(nativeProcess->name) + 2 , sizeof(char)); + char* alias = (char*)calloc( strlen(this->getHost().getName()) + strlen(nativeProcess->name) + 2, sizeof(char)); if(!alias) throw BadAllocException("alias"); @@ -414,7 +414,7 @@ namespace SimGrid throw(BadAllocException, MsgException) { - char* alias = (char*)calloc(strlen(Host::currentHost().getName()) + strlen(nativeProcess->name) + 2, sizeof(char)); + char* alias = (char*)calloc( strlen(this->getHost().getName()) + strlen(nativeProcess->name) + 2, sizeof(char)); if(!alias) throw BadAllocException("alias"); @@ -463,7 +463,7 @@ namespace SimGrid throw InvalidArgumentException("timeout (the timeout value must not be negative and different than -1.0)"); - char* alias = (char*)calloc(strlen(Host::currentHost().getName()) + strlen(nativeProcess->name) + 2, sizeof(char)); + char* alias = (char*)calloc( strlen(this->getHost().getName()) + strlen(nativeProcess->name) + 2, sizeof(char)); if(!alias) throw BadAllocException("alias"); @@ -511,7 +511,7 @@ namespace SimGrid if(timeout < 0 && timeout !=-1.0) throw InvalidArgumentException("timeout (the timeout value must not be negative and different than -1.0)"); - char* alias = (char*)calloc(strlen(Host::currentHost().getName()) + strlen(nativeProcess->name) + 2, sizeof(char)); + char* alias = (char*)calloc( strlen(this->getHost().getName()) + strlen(nativeProcess->name) + 2, sizeof(char)); if(!alias) throw BadAllocException("alias"); @@ -551,7 +551,7 @@ namespace SimGrid Task* Process::receiveTask(const Host& rHost) throw(BadAllocException, MsgException) { - char* alias = (char*)calloc(strlen(Host::currentHost().getName()) + strlen(nativeProcess->name) + 2, sizeof(char)); + char* alias = (char*)calloc( strlen(this->getHost().getName()) + strlen(nativeProcess->name) + 2, sizeof(char)); if(!alias) throw BadAllocException("alias"); -- 2.20.1