public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] RE: question about the posix package
@ 2003-12-30 15:43 CHIP BOLING
  0 siblings, 0 replies; only message in thread
From: CHIP BOLING @ 2003-12-30 15:43 UTC (permalink / raw)
  To: 'Stefano Martini', 'ecos-discuss@sources.redhat.com'

If I understand you correctly, you should be able to build your application on top of your library without much pthread awareness in the application.  There are a two things to consider when doing so that I have ran across when working with pthreads on both eCos and Win32 platforms.

If you need to change the priority of a thread, you will need to have some awareness of eCos and it's priority levels in your application.  If you have already ported your application to more than one O/S, then you probably have already ran across this.

The eCos POSIX implementation does not support timeouts on semaphores.  This is easy to work around with a little creativity.  I have a hack for this right now but it is a little ugly (uses periodic nanosleeps) and I hope to look into the actual current eCos semaphore/mutex implementation sometime in the near future to see if their is a cleaner way to do it.  I'm sure there is.

Hope this helps,

	- Chip

-----Original Message-----
From: Stefano Martini [mailto:martini@sci.univr.it]
Sent: Monday, December 29, 2003 4:29 AM
To: ecos-discuss@sources.redhat.com
Subject: question about the posix package


Hi. I am in the process of porting to ecos a library using the pthread
paradigm to support multithreaded safeness.
At the end, this lib will be used by an existing ecos application (not
using the posix package).
Assumig to enable the posix package in my ecos build, can an ecos
application (written not for posix) and a lib
on top of posix work toghether?
In other words, should I rewrite the ecos application to also use pthread?

Thanks in advance,

Stefano Martini



-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-12-30 15:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-30 15:43 [ECOS] RE: question about the posix package CHIP BOLING

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).