-/* Copyright (c) 2009-2020. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2009-2022. 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. */
SwappedContext(std::function<void()>&& code, actor::ActorImpl* get_actor, SwappedContextFactory* factory);
SwappedContext(const SwappedContext&) = delete;
SwappedContext& operator=(const SwappedContext&) = delete;
- virtual ~SwappedContext();
+ ~SwappedContext() override;
void suspend() override;
virtual void resume();
SwappedContextFactory& factory_; // for sequential and parallel run_all()
#if HAVE_VALGRIND_H
- unsigned int valgrind_stack_id_;
+ unsigned int valgrind_stack_id_ = 0;
#endif
#if HAVE_SANITIZER_ADDRESS_FIBER_SUPPORT
const void* asan_stack_ = nullptr;