// Copyright (C) 2017 Jérôme Leclercq // This file is part of the "Nazara Engine - Core module" // For conditions of distribution and use, see copyright notice in Config.hpp #include namespace Nz { /*! * \ingroup core * \class Nz::TaskScheduler * \brief Core class that represents a thread pool */ /*! * \brief Adds a task to the pending list * * \param function Task that the pool will execute */ template void TaskScheduler::AddTask(F function) { AddTaskFunctor(new FunctorWithoutArgs(function)); } /*! * \brief Adds a task to the pending list * * \param function Task that the pool will execute * \param args Arguments of the function */ template void TaskScheduler::AddTask(F function, Args&&... args) { AddTaskFunctor(new FunctorWithArgs(function, std::forward(args)...)); } /*! * \brief Adds a task to the pending list * * \param function Task that the pool will execute * \param object Object on which the method will be called */ template void TaskScheduler::AddTask(void (C::*function)(), C* object) { AddTaskFunctor(new MemberWithoutArgs(function, object)); } } #include