Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/lib/libpthread

On Apr 1,  3:02am, (YAMAMOTO Takashi) wrote:
-- Subject: Re: CVS commit: src/lib/libpthread

| > Yes, I already added it to lwp_park to avoid the hack but not using
| > the syscall yet until we decide what we need to pass to lwp_park
| > to avoid priority inversion and fix the races in pthread_cond_*.
| > 
| > christos
| i meant the following code.
| struct timespec mono will be used after the end of the block.
| is it safe?

The compiler does not warn... But it is safer to move mono out.
I've committed the changes to the _lpw_park syscall to be able
to specify the clock, and relative or absolute like clock_nanosleep,
but I was told to hold off using it because there could be other
changes to _lwp_park, related to races with cond sleeping and
priority inversion. Do you have any ideas about that?



Home | Main Index | Thread Index | Old Index