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

Public GIT Repository
Vivaldi on top of StarZone
[simgrid.git] / include / simgrid / kernel / future.hpp
index 897e4c231adfb083b9235218648668f11b12860f..e3a24687ac483a4d058bbe17a87a3ceb1e77f4f5 100644 (file)
@@ -116,8 +116,7 @@ protected:
    **/
   void resolve()
   {
-    if (status_ != FutureStatus::ready)
-      xbt_die("Deadlock: this future is not ready");
+    xbt_assert(status_ == FutureStatus::ready, "Deadlock: this future is not ready");
     status_ = FutureStatus::done;
     if (exception_) {
       std::exception_ptr exception = std::move(exception_);