This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Cyg_Binary_Semaphore class
- To: Richard Wicks <rich at accetnetwork dot com>
- Subject: Re: [ECOS] Cyg_Binary_Semaphore class
- From: Grant Edwards <grante at visi dot com>
- Date: Thu, 18 Oct 2001 16:23:43 -0500
- Cc: ecos-discuss at sourceware dot cygnus dot com
- References: <01101810534308.27245@localhost.localdomain>
On Thu, Oct 18, 2001 at 10:53:43AM -0700, Richard Wicks wrote:
> I was poking through the code and I ran across binary semaphores here:
>
> ${ECOS_REPOSITORY}/kernel/current/src/sync/bin_sem.cxx
>
> I didn't realize these were implemented in the system. I didn't see them
> covered in the ecos reference manual here:
>
> http://sources.redhat.com/ecos/docs-latest/pdf/ecos-ref.pdf
>
> Are binary semaphores new? How do I access them from C code instead of C++?
I believe that they've always been there, but you're not
supposed to use them. You're supposed to use counting
semaphores instead. There was an extensive philosophical
discussion about this a few months back.
http://sources.redhat.com/ml/ecos-discuss/2001-03/msg00250.html
--
Grant Edwards
grante@visi.com