This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: return code: ecos thread and POSIX thread
- From: Jonathan Larmour <jlarmour at redhat dot com>
- To: Robert Lee <rlee_1900 at yahoo dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Thu, 27 Dec 2001 21:13:12 +0000
- Subject: Re: [ECOS] return code: ecos thread and POSIX thread
- References: <20011223034427.11961.qmail@web9010.mail.yahoo.com>
Robert Lee wrote:
>
> Hi,
>
> Please correct me if I am wrong.
>
> In eCos, cyg_mutex_lock returns 1 (true) if
> successful.
>
> In pthread (POSIX), pthread_mutex_lock returns 0 (no
> error) if successful.
>
> What is the reason to make them different? Thank you.
Because they are different interfaces. The eCos interface was written
before we added the POSIX compatibility interface. A different
compatibility interface may do it different again.
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