25 #ifndef CPP3DS_THREAD_HPP
26 #define CPP3DS_THREAD_HPP
31 #include <cpp3ds/System/NonCopyable.hpp>
34 #include <SFML/System/Thread.hpp>
40 #define THREAD_STACK_SIZE 16384
107 template <
typename F,
typename A>
108 Thread(F
function, A argument);
130 template <
typename C>
131 Thread(
void(C::*
function)(), C*
object);
191 static void entryPoint(
void* userData);
204 priv::ThreadFunc* m_entryPoint;
207 sf::Thread* m_thread;
214 #include <cpp3ds/System/Thread.inl>
Utility class to manipulate threads.
void launch()
Run the thread.
void wait()
Wait until the thread finishes.
void terminate()
Terminate the thread.
Utility class that makes any derived class non-copyable.
Thread(F function)
Construct the thread from a functor with no argument.