This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Can the g-threads run in eCos?
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: Boen Shieh <xiebuyun at x263 dot net>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: 14 Jul 2003 12:05:25 +0100
- Subject: Re: [ECOS] Can the g-threads run in eCos?
- References: <20030714020243.598DC1C27A@mta4.x263.net>
Boen Shieh <xiebuyun@x263.net> writes:
> Hi, All
>
> I have an application that was developed in linux and using g-threads which I now want it to be
> ported to eCos. And I find that eCos using cyg_threads, so my question is that will the g_threads
> run in eCos?
>
g-threads are specific to GLIB. Since eCos does not support GLIB we do
not support them, and since they are a non-standard API specific to
one C library implementation, it is unlikely we ever will.
If you want portability then you should use POSIX threads, which are
supported in both eCos and Linux. Alternatively you can just implement
a compatibility layer behind the g_thread interface.
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com/ The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss