-/* Copyright (c) 2007-2016. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2007-2017. The SimGrid Team. All rights reserved. */
/* 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. */
-#ifndef _SIMGRID_KERNEL_CONTEXT_CONTEXT_HPP
-#define _SIMGRID_KERNEL_CONTEXT_CONTEXT_HPP
+#ifndef SIMGRID_KERNEL_CONTEXT_CONTEXT_HPP
+#define SIMGRID_KERNEL_CONTEXT_CONTEXT_HPP
#include <functional>
#include <memory>
#include <xbt/functional.hpp>
-#include "src/internal_config.h"
#include "simgrid/simix.h"
+#include "src/instr/instr_private.h"
+#include "src/internal_config.h"
+#include "src/simix/popping_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/smx_synchro_private.hpp"
#include "surf/surf.h"
#include "xbt/base.h"
-#include "xbt/fifo.h"
-#include "xbt/swag.h"
+#include "xbt/config.h"
#include "xbt/dict.h"
+#include "xbt/function_types.h"
#include "xbt/mallocator.h"
-#include "xbt/config.h"
+#include "xbt/swag.h"
#include "xbt/xbt_os_time.h"
-#include "xbt/function_types.h"
-#include "src/xbt/ex_interface.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 <csignal>
#include <simgrid/simix.hpp>
smx_actor_t process_ = nullptr;
public:
bool iwannadie;
- public:
+
Context(std::function<void()> code,
void_pfn_smxprocess_t cleanup_func,
smx_actor_t process);