Files
NazaraEngine/include/Nazara/Core/Thread.inl
Lynix 023e497777 Revert "Simplified Thread interface"
This reverts commit 49927a03e4a9bfd4681691bb859b08374cd309c6 [formerly f3cfc12d8c18eef8a8aa21c164ad994fff4a33b7].


Former-commit-id: 8315c5f18d29aff59749c2efe98208ee3f5e1a42
2012-12-03 00:25:39 +01:00

26 lines
650 B
C++

// Copyright (C) 2012 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 <Nazara/Core/Debug.hpp>
template<typename F>
NzThread::NzThread(F function)
{
CreateImpl(new NzFunctorWithoutArgs<F>(function));
}
template<typename F, typename... Args>
NzThread::NzThread(F function, Args... args)
{
CreateImpl(new NzFunctorWithArgs<F, Args...>(function, args...));
}
template<typename C>
NzThread::NzThread(void (C::*function)(), C* object)
{
CreateImpl(new NzMemberWithoutArgs<C>(function, object));
}
#include <Nazara/Core/DebugOff.hpp>