Code cleanup. Use lambdas in Thread.h (port from Dolphin).

This commit is contained in:
Sacha
2013-11-13 00:30:26 +10:00
parent df3765a320
commit 2fb7a77135
2 changed files with 5 additions and 35 deletions
+3 -1
View File
@@ -187,7 +187,9 @@ static void ThreadnameKeyAlloc()
void SetCurrentThreadName(const char* szThreadName)
{
#ifdef BLACKBERRY
#ifdef APPLE
pthread_setname_np(szThreadName);
#elif defined(BLACKBERRY)
pthread_setname_np(pthread_self(), szThreadName);
#else
pthread_once(&threadname_key_once, ThreadnameKeyAlloc);