Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Define XBT_PUBLIC without parameter, just like XBT_PRIVATE.
[simgrid.git] / src / surf / cpu_interface.hpp
index bc04a19..fb3f155 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2004-2017. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2004-2018. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -91,11 +91,7 @@ public:
    * @param requestedCores The desired amount of cores. Must be >= 1
    * @return The CpuAction corresponding to the processing
    */
-  virtual simgrid::kernel::resource::Action* execution_start(double size, int requestedCores)
-  {
-    THROW_UNIMPLEMENTED;
-    return nullptr;
-  }
+  virtual simgrid::kernel::resource::Action* execution_start(double size, int requestedCores) = 0;
 
   /**
    * @brief Make a process sleep for duration (in seconds)
@@ -150,7 +146,7 @@ public:
  */
 XBT_PUBLIC_CLASS CpuAction : public simgrid::kernel::resource::Action
 {
-  friend XBT_PUBLIC(Cpu*) getActionCpu(CpuAction* action);
+  friend XBT_PUBLIC Cpu* getActionCpu(CpuAction * action);
 
 public:
   /** @brief Signal emitted when the action state changes (ready/running/done, etc)