Skip to content

Commit b5e818b

Browse files
committed
Don't use CompareObjectHandles on Windows
1 parent 159ffcc commit b5e818b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Concurrency/Actor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ static bool isExecutingOnMainThread() {
253253
DUPLICATE_SAME_ACCESS);
254254
}
255255

256-
return CompareObjectHandles(__initialPthread, GetCurrentThread());
256+
return __initialPthread == GetCurrentThread();
257257
#else
258258
return pthread_main_np() == 1;
259259
#endif

0 commit comments

Comments
 (0)