]> AND Public Git Repository - simgrid.git/blobdiff - src/kernel/context/ContextRaw.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
objectify simix timers.
[simgrid.git] / src / kernel / context / ContextRaw.hpp
index b966a153f9587d5b27144ea8d61155d249a08c22..40b74a4b10282c608876716677fdc8570da51edf 100644 (file)
@@ -12,7 +12,6 @@
 #include <vector>
 
 #include <xbt/parmap.hpp>
-#include <xbt/xbt_os_thread.h>
 
 #include "src/kernel/context/ContextSwapped.hpp"
 
@@ -27,8 +26,7 @@ namespace context {
   */
 class RawContext : public SwappedContext {
 public:
-  RawContext(std::function<void()> code, void_pfn_smxprocess_t cleanup_func, smx_actor_t process,
-             SwappedContextFactory* factory);
+  RawContext(std::function<void()> code, smx_actor_t actor, SwappedContextFactory* factory);
 
   void swap_into(SwappedContext* to) override;
 
@@ -36,21 +34,12 @@ private:
   /** pointer to top the stack stack */
   void* stack_top_ = nullptr;
 
-#if HAVE_SANITIZER_ADDRESS_FIBER_SUPPORT
-  const void* asan_stack_ = nullptr;
-  size_t asan_stack_size_ = 0;
-  RawContext* asan_ctx_   = nullptr;
-  bool asan_stop_         = false;
-#endif
-
   static void wrapper(void* arg);
 };
 
 class RawContextFactory : public SwappedContextFactory {
 public:
-  RawContextFactory() : SwappedContextFactory("RawContextFactory") {}
-
-  Context* create_context(std::function<void()> code, void_pfn_smxprocess_t cleanup, smx_actor_t process) override;
+  Context* create_context(std::function<void()> code, smx_actor_t actor) override;
 };
 }}} // namespace