This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
periodic threads with kapi?
- From: Ryan Boder <icanoop at bitwiser dot org>
- To: ecos-discuss at sources dot redhat dot com
- Date: Sun, 17 Aug 2003 10:00:13 -0400
- Subject: [ECOS] periodic threads with kapi?
Hi,
Is there a clean way to do periodic threads with absolute timing, as opposed
to the relative timing you get with cyg_thread_delay()?
I'm looking at the kernel API shown in the Massa book, and it looks like
alarms could be used to generate periodic DSR's, which I can then use to
wake up threads. I guess that would work, but is there a better way to do
it? It seems that function something like cyg_thread_delay_until() would be
needed.
I do know how to do periodic threads with the posix API, so I could use the
posix compat layer I guess, but I would like to do it with just the kernel
API.
Thanks,
--
Ryan Boder
http://www.bitwiser.org/icanoop
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss