25#ifndef SFML_THREAD_HPP
26#define SFML_THREAD_HPP
31#include <SFML/System/Export.hpp>
32#include <SFML/System/NonCopyable.hpp>
102 template <
typename F,
typename A>
125 template <
typename C>
176 friend class priv::ThreadImpl;
189 priv::ThreadImpl* m_impl;
190 priv::ThreadFunc* m_entryPoint;
193#include <SFML/System/Thread.inl>
Utility class that makes any derived class non-copyable.
Utility class to manipulate threads.
Thread(F function)
Construct the thread from a functor with no argument.
Thread(F function, A argument)
Construct the thread from a functor with an argument.
void wait()
Wait until the thread finishes.
void launch()
Run the thread.
Thread(void(C::*function)(), C *object)
Construct the thread from a member function and an object.
void terminate()
Terminate the thread.