This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
pthread_mutexattr_settype needed
- From: Edgar Grimberg <edgar dot grimberg at zylin dot com>
- To: ecos-discuss <ecos-discuss at ecos dot sourceware dot org>
- Date: Tue, 15 Sep 2009 11:17:37 +0200
- Subject: [ECOS] pthread_mutexattr_settype needed
Hi,
When trying to build GCC4.1 with pthread support using eCos system
headers, I get a complaint that pthread_mutexattr_settype is nowhere
to be found. The workaround that I had was to create a
externC int pthread_mutexattr_settype(pthread_mutexattr_t *attr, int type)
{
return 0;
}
function in ecos/packages/compat/posix/current/src/mutex.cxx . Since
there is no PTHREAD_MUTEX_ERRORCHECK, for example, defined, this
looked good enough.
Are there any plans to fresh up POSIX compat?
Regards,
Edgar
--
Edgar Grimberg
System Developer
Zylin AS
ZY1000 JTAG Debugger http://www.zylin.com/zy1000.html
Phone: (+47) 51 63 25 00
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss