/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
-
-
#include "smx_context_sysv_private.h"
#include "xbt/threadpool.h"
static void smx_ctx_sysv_wrapper(smx_ctx_sysv_t context);
-void SIMIX_ctx_sysv_factory_init(smx_context_factory_t * factory)
+void SIMIX_ctx_sysv_factory_init(smx_context_factory_t *factory)
{
smx_ctx_base_factory_init(factory);
smx_context_t old_context;
smx_process_t process;
- while((process = xbt_swag_extract(processes))){
+ while ((process = xbt_swag_extract(processes))) {
old_context = smx_current_context;
smx_current_context = process->context;
smx_ctx_sysv_resume(smx_current_context);
while((process = xbt_swag_extract(processes))){
xbt_tpool_queue_job(tpool, (void_f_pvoid_t)smx_ctx_sysv_resume, process->context);
}
-}
\ No newline at end of file
+}