X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/42cff0c36021704f4a64ca315e1f3354af3d97d4..3150aca44effea27a875c990e1cdcfbab5e6895c:/src/msg/msg_private.hpp diff --git a/src/msg/msg_private.hpp b/src/msg/msg_private.hpp index 598549dca9..2579f3b793 100644 --- a/src/msg/msg_private.hpp +++ b/src/msg/msg_private.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2004-2020. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2004-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. */ @@ -25,7 +25,7 @@ class Task : public xbt::Extendable { std::string tracing_category_ = ""; long long int id_; - double timeout_ = 0.0; + double timeout_ = -1; /* Default timeout is infinite */ double priority_ = 1.0; double bound_ = 0.0; /* Capping for CPU resource, or 0 for no capping */ double rate_ = -1; /* Capping for network resource, or -1 for no capping*/ @@ -49,7 +49,6 @@ public: Task(const Task&) = delete; Task& operator=(const Task&) = delete; - ~Task() = default; bool is_used() const { return is_used_; } bool is_parallel() const { return parallel_; }