On Fri, 16 Apr 2021 08:49:19 GMT, Arun Joseph <ajos...@openjdk.org> wrote:

>> modules/javafx.web/src/main/native/Source/WTF/wtf/java/MainThreadJava.cpp 
>> line 45:
>> 
>>> 43: #elif OS(WINDOWS)
>>> 44: static ThreadIdentifier mainThread { 0 };
>>> 45: #endif
>> 
>> Both here and below, where the `isMainThread` is defined, assume that `UNIX` 
>> and `WINDOWS` are the only two options. I presume this is a valid assumption?
>
> I've tested in all three platforms. The two options are sufficient as Mac and 
> Linux uses `pthread`.

That's what I figured. It's only theoretical, in that if we ever add a platform 
that isn't one of `WINDOWS` or `UNIX` it wouldn't compile, but I imagine we 
have very many other places where that is also true.

-------------

PR: https://git.openjdk.java.net/jfx/pull/461

Reply via email to