[ECOS] return code: ecos thread and POSIX thread

Robert Lee rlee_1900@yahoo.com
Sat Dec 22 19:44:00 GMT 2001


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



More information about the Ecos-discuss mailing list