This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
No binary semaphore in C API?
- To: ecos-discuss at sources dot redhat dot com
- Subject: [ECOS] No binary semaphore in C API?
- From: Grant Edwards <grante at visi dot com>
- Date: Fri, 16 Mar 2001 14:01:16 -0600
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