This is the mail archive of the ecos-discuss@sources.redhat.com 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]

No binary semaphore in C API?



Hi all,

I see that the kernel impliments binary semaphores, but I can't
see a C API for them.  I've got a mutual-exclusion requirement
but can't use cyg_mutex_t because one thread locks and a
different thread unlocks the resource.  [It's kind of
complicated, the mutal exclusion is between two "groups" of
threads.]

So, I wanted to use binary semaphores, but can't find the API.
The program is using counting semaphores right now, but using a
binary ones would be a bit more "defensive".

Is there a technical reason that there isn't a C API for binary
semaphores, or is it something that just hasn't been done yet?

-- 
Grant Edwards
grante@visi.com


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