mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-31 02:59:33 +02:00
Code cleanup. Use lambdas in Thread.h (port from Dolphin).
This commit is contained in:
+3
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user