This is the mail archive of the
ecos-devel@sourceware.org
mailing list for the eCos project.
How to emulate workqueue mechanism in eCos?
- From: Max SeidenstÃcker <naturally-aligned at web dot de>
- To: ecos-devel at ecos dot sourceware dot org
- Date: Thu, 8 Aug 2013 06:14:33 -0700 (PDT)
- Subject: How to emulate workqueue mechanism in eCos?
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.