This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]