On Tue, 31 Oct 2023, LIU Hao wrote:
在 2023/10/31 16:20, Martin Storsjö 写道:
Right. On the other hand, the QueryPerformanceCounter based fallback
implementation probably is workable enough for winstore apps as well, I
would guess, so perhaps it't not worth making a fuss about in the end
anyway.
The issue is not about whether there is a fallback; the issue is about when
to use the fallback. If we still aim at providing a (static) winpthreads that
is eligible for Windows Store apps, then there does not seem any way to
detect the existence of `GetTickCount64()`, and as a consequence we would
have to use the fallback unconditionally.
We also notice that
`QueryPerformanceCounter()` is quite fast on modern Windows; the frequency is
probably not but that variable isn't gonna change hence can be static anyway.
Yes, this is what I meant. The fact that Windows Store apps wouldn't be
getting the modern codepath with GetTickCount64, but unconditonally be
usin the old fallback codepath of using QueryPerformanceCounter, doesn't
seem too bad, so I think that's acceptable.
// Martin
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public