Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
EventList.cpp
Go to the documentation of this file.
1// -------------------------------------------------------//
2//
3// SHAMROCK code for hydrodynamics
4// Copyright (c) 2021-2026 Timothée David--Cléris <tim.shamrock@proton.me>
5// SPDX-License-Identifier: CeCILL Free Software License Agreement v2.1
6// Shamrock is licensed under the CeCILL 2.1 License, see LICENSE for more information
7//
8// -------------------------------------------------------//
9
17#include "shamcomm/logs.hpp"
18
19sham::EventList::~EventList() noexcept(false) {
20 if (!consumed && !events.empty()) {
21 std::string log_str = shambase::format(
22 "EventList destroyed without being consumed :\n -> creation : {}",
23 loc_build.format_one_line());
24
25 for (auto &e : events) {
26 e.wait();
27 }
29 }
30}
~EventList() noexcept(false)
Destructor for EventList.
Definition EventList.cpp:19
void throw_with_loc(std::string message, SourceLocation loc=SourceLocation{})
Throw an exception and append the source location to it.
std::string format_one_line() const
format the location in a one liner