This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
return code: ecos thread and POSIX thread
- From: Robert Lee <rlee_1900 at yahoo dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Sat, 22 Dec 2001 19:44:27 -0800 (PST)
- Subject: [ECOS] return code: ecos thread and POSIX thread
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.
Happy Holiday.
=====
Robert Lee
Software Engineer
__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com