#include "src/mc/ModelChecker.hpp"
#include "src/mc/remote/RemoteProcess.hpp"
-using simgrid::mc::remote;
/** @file
* @brief (Cross-process, MCer/MCed) Access to SMX structures
*
/** Load the remote list of processes into a vector
*
* @param process MCed process
- * @param target Local vector (to be filled with copies of `s_smx_actor_t`)
+ * @param target Local vector (to be filled with `simgrid::mc::ActorInformation`)
* @param remote_dynar Address of the process dynar in the remote list
*/
static void MC_process_refresh_simix_actor_dynar(const simgrid::mc::RemoteProcess* process,
s_xbt_dynar_t dynar;
process->read_bytes(&dynar, sizeof(dynar), remote_dynar);
- auto* data = static_cast<smx_actor_t*>(::operator new(dynar.elmsize * dynar.used));
+ auto* data = static_cast<simgrid::kernel::actor::ActorImpl**>(::operator new(dynar.elmsize * dynar.used));
process->read_bytes(data, dynar.elmsize * dynar.used, simgrid::mc::RemotePtr<void>(dynar.data));
// Load each element of the vector from the MCed process:
simgrid::mc::ActorInformation info;
info.address = simgrid::mc::RemotePtr<simgrid::kernel::actor::ActorImpl>(data[i]);
- process->read_bytes(&info.copy, sizeof(info.copy), remote(data[i]));
+ process->read_bytes(&info.copy, sizeof(info.copy), simgrid::mc::remote(data[i]));
target.push_back(std::move(info));
}
::operator delete(data);
}
-namespace simgrid {
-namespace mc {
+namespace simgrid::mc {
void RemoteProcess::refresh_simix()
{
this->cache_flags_ |= RemoteProcess::cache_simix_processes;
}
-}
-}
+} // namespace simgrid::mc