#include <signal.h>
#include "src/simix/ActorImpl.hpp"
-#ifdef __cplusplus
-
#include <simgrid/simix.hpp>
namespace simgrid {
namespace context {
class Context;
- class ContextFactory;
XBT_PUBLIC_CLASS ContextFactory {
private:
typedef simgrid::kernel::context::ContextFactory *smx_context_factory_t;
-#else
-
-typedef struct s_smx_context_factory *smx_context_factory_t;
-
-#endif
-
SG_BEGIN_DECL()
/** @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);