Added internal thread name support, for use with debuggers.

This commit is contained in:
Alex Szpakowski
2014-05-02 08:56:23 -03:00
parent e4dc533bb2
commit 1bc8b7346d
5 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ bool Thread::start()
return false;
if (thread) // Clean old handle up
SDL_WaitThread(thread, 0);
thread = SDL_CreateThread(thread_runner, NULL, this);
thread = SDL_CreateThread(thread_runner, t->getThreadName(), this);
running = (thread != 0);
return running;
}