1 /* Copyright (c) 2004-2020. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
6 #ifndef SIMGRID_KERNEL_PROFILE_EVENT_HPP
7 #define SIMGRID_KERNEL_PROFILE_EVENT_HPP
9 #include "simgrid/forward.h"
19 resource::Resource* resource;
22 } // namespace profile
24 } // namespace simgrid
26 * @brief Free a trace event structure
28 * This function frees a trace_event if it can be freed, ie, if it has the free_me flag set to 1.
29 * This flag indicates whether the structure is still used somewhere or not.
30 * When the structure is freed, the argument is set to nullptr
32 XBT_PUBLIC void tmgr_trace_event_unref(simgrid::kernel::profile::Event** trace_event);
34 #endif // SIMGRID_KERNEL_PROFILE_EVENT_HPP