mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-22 09:18:43 +00:00
Merge pull request #3573 from degasus/fifoplayer
Fifoplayer: Fix dual core
This commit is contained in:
commit
ea3a457091
5 changed files with 68 additions and 42 deletions
|
@ -136,7 +136,8 @@ void SetCurrentThreadName(const char* szThreadName)
|
|||
#elif defined __FreeBSD__
|
||||
pthread_set_name_np(pthread_self(), szThreadName);
|
||||
#else
|
||||
pthread_setname_np(pthread_self(), szThreadName);
|
||||
// linux doesn't allow to set more than 16 bytes, including \0.
|
||||
pthread_setname_np(pthread_self(), std::string(szThreadName).substr(0, 15).c_str());
|
||||
#endif
|
||||
#ifdef USE_VTUNE
|
||||
// VTune uses OS thread names by default but probably supports longer names when set via its own API.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue