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

2016-06-01 Thread K. Frank
Hello Lefty! On Tue, May 31, 2016 at 11:31 PM, lh mouse wrote: > Note that in most cases threads other than the one calling `pthread_detach()` > can terminate at anytime. > ... I would say your description fits the typical use case. > By calling `pthread_detach()` on a `pthread_t` you _semanti

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

2016-06-01 Thread lh mouse
I think it would be a bug in your example. Were it not a bug there would be no way for a detached thread to operate itself. -- Best regards, lh_mouse 2016-06-01 - 发件人:"Burkhardt, Glenn B

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

2016-06-01 Thread Burkhardt, Glenn B UTAS
It's not clear to me from this explanation why this code should fail: pthread_setschedparam(pthread_self(), SCHED_OTHER, ¶m); but in winpthreads, for a detached thread, it will. > Re: [Mingw-w64-public] winpthreads, pthread_setschedparam, and detached > threads > From: lh mouse - 2016