X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6443d4868c5974225d792156daf319775234b087..2d103e931b4e47eb04613d0d038b08f5c0a2d004:/src/simix/smx_context_sysv.c diff --git a/src/simix/smx_context_sysv.c b/src/simix/smx_context_sysv.c index 24189f8cb7..4d30329226 100644 --- a/src/simix/smx_context_sysv.c +++ b/src/simix/smx_context_sysv.c @@ -68,7 +68,6 @@ void SIMIX_ctx_sysv_factory_init(smx_context_factory_t *factory) parmap = xbt_parmap_new(2); (*factory)->runall = smx_ctx_sysv_runall_parallel; (*factory)->self = smx_ctx_sysv_self_parallel; - (*factory)->get_thread_id = smx_ctx_sysv_get_thread_id; #else THROWF(arg_error, 0, "No thread support for parallel context execution"); #endif @@ -215,7 +214,6 @@ void smx_ctx_sysv_runall(xbt_dynar_t processes) XBT_DEBUG("Schedule item %u of %lu",cursor,xbt_dynar_length(processes)); smx_ctx_sysv_resume(process->context); } - xbt_dynar_reset(processes); } void smx_ctx_sysv_resume_parallel(smx_process_t process) @@ -234,7 +232,6 @@ void smx_ctx_sysv_runall_parallel(xbt_dynar_t processes) #ifdef CONTEXT_THREADS xbt_parmap_apply(parmap, (void_f_pvoid_t)smx_ctx_sysv_resume_parallel, processes); #endif - xbt_dynar_reset(processes); } smx_context_t smx_ctx_sysv_self_parallel(void) @@ -243,8 +240,3 @@ smx_context_t smx_ctx_sysv_self_parallel(void) return self_context ? self_context : (smx_context_t) maestro_context;*/ return SIMIX_context_get_current(); } - -int smx_ctx_sysv_get_thread_id(void) -{ - return (int)(unsigned long)xbt_os_thread_get_extra_data(); -}