Re: pthread_cond, futex(2) & ECANCELED

2021-07-10 Thread Martin Pieuchot
On 19/01/20(Sun) 14:44, Martin Pieuchot wrote: > On 18/01/20(Sat) 14:16, Martin Pieuchot wrote: > > When futex(2) got imported it didn't return ECANCELED. This was changed > > later with futex-based semaphores. > > > > This modification introduced a behavior change in pthread_cond_*wait(3). > >

Re: pthread_cond, futex(2) & ECANCELED

2020-01-19 Thread Martin Pieuchot
On 18/01/20(Sat) 14:16, Martin Pieuchot wrote: > When futex(2) got imported it didn't return ECANCELED. This was changed > later with futex-based semaphores. > > This modification introduced a behavior change in pthread_cond_*wait(3). > The diff below restores the previous behavior by treating

pthread_cond, futex(2) & ECANCELED

2020-01-18 Thread Martin Pieuchot
When futex(2) got imported it didn't return ECANCELED. This was changed later with futex-based semaphores. This modification introduced a behavior change in pthread_cond_*wait(3). The diff below restores the previous behavior by treating ECANCELED like EINTR. Note that the __thrsleep(2) version