Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make sg_* functions callable from simdag
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 11 Jan 2016 23:53:14 +0000 (00:53 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 11 Jan 2016 23:54:32 +0000 (00:54 +0100)
There was an issue when they were doing a simcall, but now, every
simdag simulation is supposed to run in maestro context.

src/simix/smx_global.cpp

index be74fbf..ea12e3d 100644 (file)
@@ -702,5 +702,5 @@ xbt_dict_t SIMIX_asr_get_properties(const char *name)
 
 int SIMIX_is_maestro()
 {
-  return SIMIX_process_self() == simix_global->maestro_process;
-}
\ No newline at end of file
+  return simix_global==NULL /*SimDag*/|| SIMIX_process_self() == simix_global->maestro_process;
+}