X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cc79d648c6fd0e8fc281e263c24fe72adbe59769..9775891b158eef2641387589cb44b52adbfc9f82:/src/surf/cpu_interface.hpp diff --git a/src/surf/cpu_interface.hpp b/src/surf/cpu_interface.hpp index 4b273c70a5..a011ad3c73 100644 --- a/src/surf/cpu_interface.hpp +++ b/src/surf/cpu_interface.hpp @@ -48,6 +48,8 @@ public: * Resource * ************/ +class CpuAction; + /** @ingroup SURF_cpu_interface * @brief SURF cpu resource interface class * @details A Cpu represent a cpu associated to a host @@ -90,7 +92,7 @@ public: * @param size The value of the processing amount (in flop) needed to process * @return The CpuAction corresponding to the processing */ - virtual Action* execution_start(double size) = 0; + virtual CpuAction* execution_start(double size) = 0; /** * @brief Execute some quantity of computation on more than one core @@ -99,7 +101,7 @@ public: * @param requested_cores The desired amount of cores. Must be >= 1 * @return The CpuAction corresponding to the processing */ - virtual Action* execution_start(double size, int requested_cores) = 0; + virtual CpuAction* execution_start(double size, int requested_cores) = 0; /** * @brief Make a process sleep for duration (in seconds) @@ -107,7 +109,7 @@ public: * @param duration The number of seconds to sleep * @return The CpuAction corresponding to the sleeping */ - virtual Action* sleep(double duration) = 0; + virtual CpuAction* sleep(double duration) = 0; /** @brief Get the amount of cores */ virtual int get_core_count();