This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Cyg_Thread::wakeup_count
- To: Rafael Rodríguez Velilla <rrv at tid dot es>
- Subject: Re: [ECOS] Cyg_Thread::wakeup_count
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Thu, 21 Jun 2001 05:32:12 +0100
- Cc: ecos <ecos-discuss at sourceware dot cygnus dot com>
- Organization: Red Hat UK Ltd.
- References: <3B30F075.7BCCEEE0@tid.es>
Rafael Rodríguez Velilla wrote:
>
> I see in the constructor of Cyg_Thread that suspend_count is
> initialised to 1 but wakeup_count is not initialised.
> If I'm going to use counted_wake, do I need to call
> cancel_counted_wake at first? Wouldn't it be better if it were
> initialised in the constructor?
Looks like an omission in the constructor. I'll initialize it to 0.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
Come to the Red Hat TechWorld open source conference in Brussels!
Keynotes, techie talks and exhibitions http://www.redhat-techworld.com/