[ECOS] No binary semaphore in C API?
Grant Edwards
grante@visi.com
Fri Mar 16 12:01:00 GMT 2001
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
More information about the Ecos-discuss
mailing list