Hello, I would like to remind about these changes.

I wrote:

> There are more time-related changes.
> GitHub CI run: 
> https://github.com/maiddaisuki/mingw-w64/actions/runs/38910181716
>
> Some changes that are worth mentioning:
>
> Changes 0006.txt and 0007.txt, in my opinion is how we handle any function 
> that is looked up at runtime. Look it up during initialization, and store 
> pointer in some local structure. If needed, provide a simple stub or 
> replacement to use if the function is not available. Then, add a wrapper 
> which calls it through the pointer.
>
> Changes 0008.txt and 0009.txt are similar to what I do in my posix32 library: 
> you have a macro that tells the minimal Windows version you want binary to 
> run on; this allows us to only check for functions that may be unavailable at 
> runtime, which referencing functions which are known to be available 
> directly. Also, feel free to change wording in README change.
>
> In "[PATCH 16/21] winpthreads: time.c: refactor `nanosleep` and 
> `clock_nanosleep` implementation":
>
>> +    /**
>> +     * FIXME:
>> +     *
>> +     * For `CLOCK_REALTIME`, it is possible that the system time has been
>> +     * changed while we were sleeping, which means `ramain` will be 
>> calculated
>> +     * relative to the new system time.
>> +     *
>> +     * This is acceptable when `request` is absolute time (`TIMER_ABSTIME`),
>> +     * but not when it is relative.
>> +     *
>> +     * In order to fix this we would need to re-write waiting routines,
>> +     * and allow them return total time spent sleeping.
>> +     */
>
> I hoped to as well improve `_pthread_wait_*` functions with this patch 
> series, but it turned out trickier than I thought. When using milliseconds 
> for time measurement, using either `QueryPerformanceCounter` or 
> `GetTickCount*` does not solve the issue completely; I plan to write a new 
> function to handle wait requests and do proper timing measurement, and use it 
> where appropriate.

In the meantime, I worked on implementing this new wait routine. The next 
changes are basically complete; I'll just need to run CI for them after we're 
done with these changes, as they depend on them.

- Kirill Makurin

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to