This is the mail archive of the
mailing list for the eCos project.
Wake up a thread that is blocked on mbox_get()
- From: Elad Yosef <elad dot yosef at gmail dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Thu, 3 Feb 2011 11:21:01 +0200
- Subject: [ECOS] Wake up a thread that is blocked on mbox_get()
In my application several threads are blocked on get from mbox
They are also need to handle some periodic things.
I have external HW timer that supply the ticks for the periods
It issues interrupt and I want to wake up the blocked threads from the DSR
This has to be deterministic
How can I wake up the blocked threads to handle the ticks from the DSR?
I prefer not to use mbox_try_get() , it overloads my CPU
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss