Re: sleep_setup/finish simplification

2021-02-03 Thread Claudio Jeker
On Wed, Feb 03, 2021 at 09:43:01AM +0100, Martin Pieuchot wrote: > On 02/02/21(Tue) 10:45, Claudio Jeker wrote: > > On Mon, Feb 01, 2021 at 04:25:47PM +0100, Martin Pieuchot wrote: > > > On 08/12/20(Tue) 10:06, Martin Pieuchot wrote: > > > > Diff below aims to simplify the API to put a thread on a

Re: sleep_setup/finish simplification

2021-02-03 Thread Martin Pieuchot
On 02/02/21(Tue) 10:45, Claudio Jeker wrote: > On Mon, Feb 01, 2021 at 04:25:47PM +0100, Martin Pieuchot wrote: > > On 08/12/20(Tue) 10:06, Martin Pieuchot wrote: > > > Diff below aims to simplify the API to put a thread on a sleep queue and > > > reduce it to the following: > > > > > > sleep_se

Re: sleep_setup/finish simplification

2021-02-02 Thread Claudio Jeker
On Mon, Feb 01, 2021 at 04:25:47PM +0100, Martin Pieuchot wrote: > On 08/12/20(Tue) 10:06, Martin Pieuchot wrote: > > Diff below aims to simplify the API to put a thread on a sleep queue and > > reduce it to the following: > > > > sleep_setup(); > > /* check condition or release lock */ >

Re: sleep_setup/finish simplification

2021-02-01 Thread Claudio Jeker
On Mon, Feb 01, 2021 at 05:11:39PM +0100, Claudio Jeker wrote: > On Mon, Feb 01, 2021 at 04:25:47PM +0100, Martin Pieuchot wrote: > > On 08/12/20(Tue) 10:06, Martin Pieuchot wrote: > > > Diff below aims to simplify the API to put a thread on a sleep queue and > > > reduce it to the following: > > >

Re: sleep_setup/finish simplification

2021-02-01 Thread Claudio Jeker
On Mon, Feb 01, 2021 at 04:25:47PM +0100, Martin Pieuchot wrote: > On 08/12/20(Tue) 10:06, Martin Pieuchot wrote: > > Diff below aims to simplify the API to put a thread on a sleep queue and > > reduce it to the following: > > > > sleep_setup(); > > /* check condition or release lock */ >

Re: sleep_setup/finish simplification

2021-02-01 Thread Martin Pieuchot
On 08/12/20(Tue) 10:06, Martin Pieuchot wrote: > Diff below aims to simplify the API to put a thread on a sleep queue and > reduce it to the following: > > sleep_setup(); > /* check condition or release lock */ > sleep_finish(); > > It is motivated by my work to sleep the SCHED_

Re: sleep_setup/finish simplification

2021-01-08 Thread Jonathan Matthew
On Fri, Jan 08, 2021 at 12:59:16PM -0600, Scott Cheloha wrote: > On Mon, Dec 28, 2020 at 11:41:52AM -0300, Martin Pieuchot wrote: > > On 08/12/20(Tue) 10:06, Martin Pieuchot wrote: > > > Diff below aims to simplify the API to put a thread on a sleep queue and > > > reduce it to the following: > > >

Re: sleep_setup/finish simplification

2021-01-08 Thread Scott Cheloha
On Mon, Dec 28, 2020 at 11:41:52AM -0300, Martin Pieuchot wrote: > On 08/12/20(Tue) 10:06, Martin Pieuchot wrote: > > Diff below aims to simplify the API to put a thread on a sleep queue and > > reduce it to the following: > > > > sleep_setup(); > > /* check condition or release lock */ >

Re: sleep_setup/finish simplification

2020-12-28 Thread Martin Pieuchot
On 08/12/20(Tue) 10:06, Martin Pieuchot wrote: > Diff below aims to simplify the API to put a thread on a sleep queue and > reduce it to the following: > > sleep_setup(); > /* check condition or release lock */ > sleep_finish(); > > It is motivated by my work to sleep the SCHED_

sleep_setup/finish simplification

2020-12-08 Thread Martin Pieuchot
Diff below aims to simplify the API to put a thread on a sleep queue and reduce it to the following: sleep_setup(); /* check condition or release lock */ sleep_finish(); It is motivated by my work to sleep the SCHED_LOCK() but might as well prevent/fix some bugs. The tric