We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 159ffcc commit b5e818bCopy full SHA for b5e818b
stdlib/public/Concurrency/Actor.cpp
@@ -253,7 +253,7 @@ static bool isExecutingOnMainThread() {
253
DUPLICATE_SAME_ACCESS);
254
}
255
256
- return CompareObjectHandles(__initialPthread, GetCurrentThread());
+ return __initialPthread == GetCurrentThread();
257
#else
258
return pthread_main_np() == 1;
259
#endif
0 commit comments