Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
- Add SIMIX_context_get_thread_id to the context factory interface.
[simgrid.git] / src / simix / smx_context_base.c
index 6e05383..5403bd8 100644 (file)
@@ -8,7 +8,7 @@
 
 
 #include "xbt/function_types.h"
-#include "bindings/smx_context.h"
+#include "simix/context.h"
 
 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(bindings);
 
@@ -25,6 +25,7 @@ void smx_ctx_base_factory_init(smx_context_factory_t *factory)
   (*factory)->runall = NULL;
   (*factory)->self = smx_ctx_base_self;
   (*factory)->get_data = smx_ctx_base_get_data;
+  (*factory)->get_thread_id = smx_ctx_base_get_thread_id;
 
   (*factory)->name = "base context factory";
 }
@@ -96,3 +97,8 @@ void *smx_ctx_base_get_data(smx_context_t context)
 {
   return context->data;
 }
+
+int smx_ctx_base_get_thread_id()
+{
+  return 0;
+}