mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-31 11:37:00 +01:00
Code cleanup. Use lambdas in Thread.h (port from Dolphin).
This commit is contained in:
1 parent
df3765a320
commit
2fb7a77135
2 files changed
+5
-35
No files matched your search
+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