28#include <SFML/System/Win32/Thread.hpp>
82 std::cerr <<
"Failed to create thread" << std::endl;
125 myFunction(myUserData);
132unsigned int __stdcall Thread::ThreadFunc(
void* UserData)
135 Thread* ThreadInstance =
reinterpret_cast<Thread*
>(UserData);
138 ThreadInstance->Run();
void Launch()
Create and run the thread.
void Terminate()
Terminate the thread Terminating a thread with this function is not safe, you should rather try to ma...
void Wait()
Wait until the thread finishes.
Thread()
Default constructor.
virtual ~Thread()
Virtual destructor.
Vector2 is an utility class for manipulating 2 dimensional vectors.