* How to emulate workqueue mechanism in eCos?
@ 2013-08-08 13:14 Max Seidenstücker
0 siblings, 0 replies; only message in thread
From: Max Seidenstücker @ 2013-08-08 13:14 UTC (permalink / raw)
To: ecos-devel
Hi folks,
I am still working on updating JFFS2 with the write buffer support to eCos.
Currently I am struggeling with workqueues. I tried to circumvent those by
directly triggering the wbuf_flush() operation, but with all those
semaphores I get deadlocks all the time. So to be cleaner I'd like to
replicate the workqueue mechanism in eCos.
How can this be achieved? My idea is to use a whole thread for that. It may
be an overkill on ressources but I think I can make it work. How would you
implement synchronization, function calls?
The workqueue thread ask if new scheduled work exists, if not -> sleep for
some time, after that do this process again
Any suggestions or ideas are appreciated!
--
View this message in context: http://sourceware-org.1504.n7.nabble.com/How-to-emulate-workqueue-mechanism-in-eCos-tp240552.html
Sent from the Sourceware - ecos-devel mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-08-08 13:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-08 13:14 How to emulate workqueue mechanism in eCos? Max Seidenstücker
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).