Re: [Mingw-w64-public] winpthreads, pthread_setschedparam, and detached threads

2016-05-31 Thread lh mouse
Note that in most cases threads other than the one calling `pthread_detach()` can terminate at anytime. After a call `pthread_detach()`, if the thread terminates, its resources are freed automatically, rendering the `pthread_t` no longer valid. It is impossible to tell whether a `pthread_t` is d

Re: [Mingw-w64-public] winpthreads, pthread_setschedparam, and detached threads

2016-05-31 Thread K. Frank
Hi Glenn! On Tue, May 31, 2016 at 11:11 AM, Burkhardt, Glenn BUTAS wrote: > The way the winpthreads code is writing, the Windows handle for the thread is > cleared when the thread is made detached. That means that the > pthread_setschedparam() call can't work. So thread priorities for

[Mingw-w64-public] winpthreads, pthread_setschedparam, and detached threads

2016-05-31 Thread Burkhardt, Glenn B UTAS
The way the winpthreads code is writing, the Windows handle for the thread is cleared when the thread is made detached. That means that the pthread_setschedparam() call can't work. So thread priorities for detached threads can only be set once, at thread creation, before the thread is detache

Re: [Mingw-w64-public] [PATCH] Add a libsynchronization.a

2016-05-31 Thread Hugo Beauzée-Luyssen
On 05/31/2016 05:42 PM, Hugo Beauzée-Luyssen wrote: > This exposes the WaitOnAddress, WakeByAddressAll and WakeByAddressSingle > functions > Adding those to kernel32.lib fails at runtime > --- > mingw-w64-crt/Makefile.am| 20 > ++-- > mingw-w64-crt/li

[Mingw-w64-public] [PATCH] Add a libsynchronization.a

2016-05-31 Thread Hugo Beauzée-Luyssen
This exposes the WaitOnAddress, WakeByAddressAll and WakeByAddressSingle functions Adding those to kernel32.lib fails at runtime --- mingw-w64-crt/Makefile.am| 20 ++-- mingw-w64-crt/lib32/Makefile.am | 1 + mingw-w64-crt/lib32/api-

[Mingw-w64-public] [PATCH] Add a libsynchronization.a

2016-05-31 Thread Hugo Beauzée-Luyssen
This exposes the WaitOnAddress, WakeByAddressAll and WakeByAddressSingle functions Adding those to kernel32.lib fails at runtime --- mingw-w64-crt/Makefile.am| 20 ++-- mingw-w64-crt/lib32/Makefile.am | 1 + mingw-w64-crt/lib32/api-

Re: [Mingw-w64-public] [PATCH] kernel32.def: Add missing WaitOnAddress & WakeByAddress*

2016-05-31 Thread Hugo Beauzée-Luyssen
On 05/31/2016 02:12 PM, Hugo Beauzée-Luyssen wrote: > --- > mingw-w64-crt/lib32/kernel32.def| 3 +++ > mingw-w64-crt/lib64/kernel32.def| 3 +++ > mingw-w64-crt/libarm32/kernel32.def | 3 +++ > 3 files changed, 9 insertions(+) > > diff --git a/mingw-w64-crt/lib32/kernel32.def > b/mingw

[Mingw-w64-public] [PATCH] kernel32.def: Add missing WaitOnAddress & WakeByAddress*

2016-05-31 Thread Hugo Beauzée-Luyssen
--- mingw-w64-crt/lib32/kernel32.def| 3 +++ mingw-w64-crt/lib64/kernel32.def| 3 +++ mingw-w64-crt/libarm32/kernel32.def | 3 +++ 3 files changed, 9 insertions(+) diff --git a/mingw-w64-crt/lib32/kernel32.def b/mingw-w64-crt/lib32/kernel32.def index 0435d8d..aa834c6 100644 --- a/mingw-w6