* [ECOS] POSIX thread library
@ 2001-06-11 11:17 Vipin Mehta
2001-06-11 12:36 ` Jonathan Larmour
0 siblings, 1 reply; 2+ messages in thread
From: Vipin Mehta @ 2001-06-11 11:17 UTC (permalink / raw)
To: ecos-discuss
Hi,
Is it possible to implement all the standard POSIX thread library
calls in ecos namely,
General
------
pthread_create <--> cyg_thread_create
pthread_exit <--> cyg_thread_exit
pthread_detach <--> ??
Mutexes
------
pthread_mutex_init <--> cyg_mutex_init
pthread_mutex_lock <--> cyg_mutex_lock
pthread_mutex_unlock <--> cyg_mutex_unlock
pthread_mutexattr_init <--> ??
pthread_mutexattr_setkind_np <--> ??
Doubt : Now for example the cyg_mutex_unlock expects that it should not
be called on an unlocked mutex but the behaviour has not been specfied
in case it happens. To specify the behaviour for the same we have the
last two calls against which I couldn't figure out any equivalent call.
can anybody please throw some light on this.
Conditional variables
--------------
pthread_cond_init <--> cyg_cond_init
pthread_cond_wait <--> cyg_cond_wait
pthread_cond_signal <--> cyg_cond_signal
pthread_cond_timedwait <--> cyg_cond_timed_wait
pthread_cond_broadcast <--> cyg_cond_broadcast
Others
-----
pthread_attr_init <--> ??
pthread_attr_setdetachstate <--> ??
pthread_attr_setschedpolicy <--> ??
pthread_attr_setschedparam <--> ??
pthread_attr_setinheritsched <--> ??
I just want to know if there are any known issues/limtations with the
equivalent commands listed above as compared to their POSIX counterparts
and if anything could be done for those which are not there. Please also
suggest if there is any workaround if possible in any of the cases
listed above for which there are no equivalent commands.
regards,
vipin
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ECOS] POSIX thread library
2001-06-11 11:17 [ECOS] POSIX thread library Vipin Mehta
@ 2001-06-11 12:36 ` Jonathan Larmour
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2001-06-11 12:36 UTC (permalink / raw)
To: Vipin Mehta; +Cc: ecos-discuss
Vipin Mehta wrote:
>
> Hi,
> Is it possible to implement all the standard POSIX thread library
> calls in ecos namely,
If you get the eCos sources in the anonymous CVS repository, all the
pthread functions you list are implemented.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
Come to the Red Hat TechWorld open source conference in Brussels!
Keynotes, techie talks and exhibitions http://www.redhat-techworld.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-06-11 12:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-11 11:17 [ECOS] POSIX thread library Vipin Mehta
2001-06-11 12:36 ` Jonathan Larmour
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).