Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
The term 'request' was misleading here
[simgrid.git] / src / simix / smx_context_sysv_private.h
index de4b441..745df05 100644 (file)
@@ -29,6 +29,7 @@ SG_BEGIN_DECL()
 typedef struct s_smx_ctx_sysv {
   s_smx_ctx_base_t super;       /* Fields of super implementation */
   ucontext_t uc;                /* the thread that execute the code */
+  ucontext_t old_uc;            /* the context that was swapped with */
 #ifdef HAVE_VALGRIND_VALGRIND_H
   unsigned int valgrind_stack_id;       /* the valgrind stack id */
 #endif
@@ -50,9 +51,9 @@ void smx_ctx_sysv_free(smx_context_t context);
 void smx_ctx_sysv_stop(smx_context_t context);
 void smx_ctx_sysv_suspend(smx_context_t context);
 void smx_ctx_sysv_resume(smx_context_t new_context);
-void smx_ctx_sysv_runall(xbt_swag_t processes);
-void smx_ctx_sysv_resume_parallel(smx_context_t new_context);
-void smx_ctx_sysv_runall_parallel(xbt_swag_t processes);
+void smx_ctx_sysv_runall(xbt_dynar_t processes);
+void smx_ctx_sysv_resume_parallel(smx_process_t new_context);
+void smx_ctx_sysv_runall_parallel(xbt_dynar_t processes);
 smx_context_t smx_ctx_sysv_self_parallel(void);
 
 SG_END_DECL()