SimGrid
3.16
Versatile Simulation of Distributed Systems
|
#include <functional>
#include <memory>
#include <unordered_map>
#include <vector>
#include <xbt/functional.hpp>
#include "src/internal_config.h"
#include "simgrid/simix.h"
#include "surf/surf.h"
#include "xbt/base.h"
#include "xbt/swag.h"
#include "xbt/dict.h"
#include "xbt/mallocator.h"
#include "xbt/config.h"
#include "xbt/xbt_os_time.h"
#include "xbt/function_types.h"
#include "src/instr/instr_private.h"
#include "src/simix/smx_host_private.h"
#include "src/simix/smx_io_private.h"
#include "src/simix/smx_network_private.h"
#include "src/simix/popping_private.h"
#include "src/simix/smx_synchro_private.h"
#include <signal.h>
#include "src/simix/ActorImpl.hpp"
#include <simgrid/simix.hpp>
Classes | |
class | simgrid::kernel::context::ContextFactory |
class | simgrid::kernel::context::Context |
class | simgrid::kernel::context::AttachContext |
Namespaces | |
simgrid | |
Alltoall Bruck. | |
simgrid::kernel | |
simgrid::kernel::context | |
Macros | |
#define | smx_context_usable_stack_size smx_context_stack_size |
Typedefs | |
typedef ContextFactory *(* | simgrid::kernel::context::ContextFactoryInitializer) () |
typedef simgrid::kernel::context::ContextFactory * | smx_context_factory_t |
Variables | |
char | sigsegv_stack [SIGSTKSZ] |
#define smx_context_usable_stack_size smx_context_stack_size |
void SIMIX_context_mod_init | ( | ) |
This function is called by SIMIX_global_init() to initialize the context module.
void SIMIX_context_mod_exit | ( | ) |
This function is called by SIMIX_clean() to finalize the context module.
smx_context_t SIMIX_context_new | ( | std::function< void()> | code, |
void_pfn_smxprocess_t | cleanup_func, | ||
smx_actor_t | simix_process | ||
) |
creates a new context for a user level process
code | a main function |
cleanup_func | the function to call when the context stops |
void SIMIX_context_runall | ( | ) |
Executes all the processes to run (in parallel if possible).
smx_context_t SIMIX_context_self | ( | ) |
returns the current running context
void* SIMIX_context_stack_new | ( | ) |
void SIMIX_context_set_current | ( | smx_context_t | context | ) |
Sets the current context of this thread.
context | the context to set |
smx_context_t SIMIX_context_get_current | ( | ) |
Returns the current context of this thread.
int SIMIX_process_get_maxpid | ( | ) |
void SIMIX_post_create_environment | ( | ) |
simgrid::simix::ActorCodeFactory& SIMIX_get_actor_code_factory | ( | const char * | name | ) |
Gets a smx_actor_t code from the global table.
Gets a code function from the global table. Returns nullptr if there are no function registered with the name. This table is then used by SIMIX_launch_application.
name | the reference name of the function. |
char sigsegv_stack[SIGSTKSZ] |