{"action":"created","issue":{"url":"https://api.github.com/repos/dolphin-emu/dolphin/issues/2076","labels_url":"https://api.github.com/repos/dolphin-emu/dolphin/issues/2076/labels{/name}","comments_url":"https://api.github.com/repos/dolphin-emu/dolphin/issues/2076/comments","events_url":"https://api.github.com/repos/dolphin-emu/dolphin/issues/2076/events","html_url":"https://github.com/dolphin-emu/dolphin/pull/2076","id":58173675,"number":2076,"title":"IsCPUThread() Speed Up","user":{"login":"tanishalfelven","id":6371353,"avatar_url":"https://avatars.githubusercontent.com/u/6371353?v=3","gravatar_id":"","url":"https://api.github.com/users/tanishalfelven","html_url":"https://github.com/tanishalfelven","followers_url":"https://api.github.com/users/tanishalfelven/followers","following_url":"https://api.github.com/users/tanishalfelven/following{/other_user}","gists_url":"https://api.github.com/users/tanishalfelven/gists{/gist_id}","starred_url":"https://api.github.com/users/tanishalfelven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tanishalfelven/subscriptions","organizations_url":"https://api.github.com/users/tanishalfelven/orgs","repos_url":"https://api.github.com/users/tanishalfelven/repos","events_url":"https://api.github.com/users/tanishalfelven/events{/privacy}","received_events_url":"https://api.github.com/users/tanishalfelven/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":27,"created_at":"2015-02-19T06:40:22Z","updated_at":"2015-02-21T06:51:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dolphin-emu/dolphin/pulls/2076","html_url":"https://github.com/dolphin-emu/dolphin/pull/2076","diff_url":"https://github.com/dolphin-emu/dolphin/pull/2076.diff","patch_url":"https://github.com/dolphin-emu/dolphin/pull/2076.patch"},"body":"Instead of comparing id's of the threads and comparing, I added a `TLS bool` that simply tracks if the current thread is in fact the `CPUThread`. I wasn't sure on multiplatform-ness, so I made a define that checks the compiler because not all compilers implement the same way to define TLS variables (C++11 defines a thread_local keyword, but it doesn't seem anyone's bothered to slap that into their compilers).\r\n\r\nThis is my first ever Open Source commit (and definitely not the last), so if there are any problems please explain them with *small* words. \r\n\r\n@delroth originally mentioned this on https://github.com/dolphin-emu/dolphin/pull/2067\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/dolphin-emu/dolphin/issues/comments/75359369","html_url":"https://github.com/dolphin-emu/dolphin/pull/2076#issuecomment-75359369","issue_url":"https://api.github.com/repos/dolphin-emu/dolphin/issues/2076","id":75359369,"user":{"login":"magumagu","id":7026757,"avatar_url":"https://avatars.githubusercontent.com/u/7026757?v=3","gravatar_id":"","url":"https://api.github.com/users/magumagu","html_url":"https://github.com/magumagu","followers_url":"https://api.github.com/users/magumagu/followers","following_url":"https://api.github.com/users/magumagu/following{/other_user}","gists_url":"https://api.github.com/users/magumagu/gists{/gist_id}","starred_url":"https://api.github.com/users/magumagu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magumagu/subscriptions","organizations_url":"https://api.github.com/users/magumagu/orgs","repos_url":"https://api.github.com/users/magumagu/repos","events_url":"https://api.github.com/users/magumagu/events{/privacy}","received_events_url":"https://api.github.com/users/magumagu/received_events","type":"User","site_admin":false},"created_at":"2015-02-21T06:51:48Z","updated_at":"2015-02-21T06:51:48Z","body":"@dolphin-emu-bot rebuild"}}