Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Event Flags Support: (4 Items)
   
Event Flags Support  
Does QNX Neutrino support event flags in any way?
RE: Event Flags Support  
 

> -----Original Message-----
> From: Bill Crowe [mailto:bill.crowe@edocorp.com] 
> Sent: November 16, 2007 2:08 PM
> To: ostech-core_os
> Subject: Event Flags Support
> 
> Does QNX Neutrino support event flags in any way?

I think that you are going to have to be a bit more specific.
What kind of event flags?  In what context are you meaning
these flags to be set?

Thanks,
 Thomas
Re: RE: Event Flags Support  
I apologize for being so vague...

I might have already found the answer to my initial question, but this is what I meant.  Is there a way for a thread to 
pend on multiple conditions being met?  So, other threads would post events and the pending thread would unblock when 
all of its specified conditions are met.  I haven't found anything that does exactly what I want, but obviously I could 
write a wrapper that used condition variables.  Just didn't want to reinvent the wheel.
RE: RE: Event Flags Support  
 

> -----Original Message-----
> From: Bill Crowe [mailto:bill.crowe@edocorp.com] 
> Sent: November 16, 2007 4:03 PM
> To: ostech-core_os
> Subject: Re: RE: Event Flags Support
> 
> I apologize for being so vague...
> 
> I might have already found the answer to my initial question, 
> but this is what I meant.  Is there a way for a thread to 
> pend on multiple conditions being met?  So, other threads 
> would post events and the pending thread would unblock when 
> all of its specified conditions are met.  I haven't found 
> anything that does exactly what I want, but obviously I could 
> write a wrapper that used condition variables.  Just didn't 
> want to reinvent the wheel.

The condition variable is exactly what you want.  An arbitrary
set of data that you determine to release the execution.

The other thing that may work for you are the barriers.  Slightly
different but depending on what you want to do it might be the
thing for you to use.

Hope this helps,
 Thomas