bug-hurd
[Top][All Lists]
Advanced

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

Re: [RFC] kern: simple futex for gnumach (version 11)


From: Richard Braun
Subject: Re: [RFC] kern: simple futex for gnumach (version 11)
Date: Thu, 9 Jan 2014 17:55:42 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu, Jan 09, 2014 at 05:52:21PM +0100, Richard Braun wrote:
> On Thu, Jan 09, 2014 at 05:06:09PM +0100, Marin Ramesa wrote:
> > >> +                        simple_lock(&futex_shared_lock);
> > >> +                                
> > >> +                        thread_timeout_setup(current_thread());
> > >> +
> > >> +                        assert_wait(NULL, TRUE);
> > >> +                        thread_will_wait_with_timeout(current_thread(), 
> > >> (unsigned
> > >int)msec);
> > >> +
> > >> +                        simple_unlock(&futex_shared_lock);
> > >> +                        
> > >> +                        thread_block(NULL);

By the way, why is thread_timeout_setup called here ? It really looks
wrong here.

-- 
Richard Braun



reply via email to

[Prev in Thread] Current Thread [Next in Thread]