#include "xbt/function_types.h"
-#include "smx_context_private.h"
+#include "simix/context.h"
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(bindings);
-void smx_ctx_base_factory_init(smx_context_factory_t * factory)
+void smx_ctx_base_factory_init(smx_context_factory_t *factory)
{
/* instantiate the context factory */
*factory = xbt_new0(s_smx_context_factory_t, 1);
(*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";
}
void *smx_ctx_base_get_data(smx_context_t context)
{
return context->data;
-}
\ No newline at end of file
+}
+
+int smx_ctx_base_get_thread_id()
+{
+ return 0;
+}