This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Event Flags - Can I set bits even no threads are pending on the flag?
- From: Elad Yosef <elad dot yosef at gmail dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Wed, 9 Feb 2011 08:29:08 +0200
- Subject: [ECOS] Event Flags - Can I set bits even no threads are pending on the flag?
Hi,
I want to set flag bits from my DSR.
I have a number of threads that are running in the thread loop and
pending on mbox.
I'm setting bits in the flag from my DSR and later call
cyg_thread_release() to wake up the threads from the mbox_get()
>From the threads I would use cyg_event_poll() to read the event bits,
not using the CYG_FLAG_WAITMODE_CLR
My question is regarding the set_bits()
Does it clear the bits in the flag if no threads are waiting on the flag?
Thanks
Elad
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss