X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c987f60dfea775b1675a01e76f05bd723aa3e992..b686073e4e6991ea9ae4154a13bf693acd738551:/src/kernel/context/Context.hpp diff --git a/src/kernel/context/Context.hpp b/src/kernel/context/Context.hpp index a604581f0c..eab87f8071 100644 --- a/src/kernel/context/Context.hpp +++ b/src/kernel/context/Context.hpp @@ -35,8 +35,6 @@ #include #include "src/simix/ActorImpl.hpp" -#ifdef __cplusplus - #include namespace simgrid { @@ -44,7 +42,6 @@ namespace kernel { namespace context { class Context; - class ContextFactory; XBT_PUBLIC_CLASS ContextFactory { private: @@ -150,12 +147,6 @@ XBT_PRIVATE ContextFactory* boost_factory(); typedef simgrid::kernel::context::ContextFactory *smx_context_factory_t; -#else - -typedef struct s_smx_context_factory *smx_context_factory_t; - -#endif - SG_BEGIN_DECL() @@ -184,7 +175,7 @@ XBT_PUBLIC_DATA(char sigsegv_stack[SIGSTKSZ]); /** @brief Executes all the processes to run (in parallel if possible). */ XBT_PRIVATE void SIMIX_context_runall(void); /** @brief returns the current running context */ -XBT_PRIVATE smx_context_t SIMIX_context_self(void); +XBT_PUBLIC(smx_context_t) SIMIX_context_self(void); // public because it's used in simgrid-java XBT_PRIVATE void *SIMIX_context_stack_new(void); XBT_PRIVATE void SIMIX_context_stack_delete(void *stack);