This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Once again, I need a binary semaphore
- From: Grant Edwards <grant dot b dot edwards at gmail dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Mon, 16 Mar 2015 17:17:51 +0000 (UTC)
- Subject: Once again, I need a binary semaphore
- Authentication-results: sourceware.org; auth=none
Once again, I find I need a binary semaphore for a C application I'm
porting from another OS.
The eCos kernel has binary semaphores, but there is only a C++ API and
no C API. I and others have asked why there is no C API for binary
semaphores, and all I've ever really understood of the answer was that
certain developers didn't think binary semaphores were cool enough.
I'm implementing a C API for binary semaphores. It'c completely
trivial and consits of only a few dozen lines of code. Any chance
such a patch would be accepted, or are binary semaphores still too
uncool to sit at the same lunch table as mutexes and counting
semaphores?
--
Grant Edwards grant.b.edwards Yow! I smell like a wet
at reducing clinic on Columbus
gmail.com Day!
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss