From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 80849 invoked by alias); 16 Mar 2015 17:18:04 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 80824 invoked by uid 89); 16 Mar 2015 17:18:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: Yes, score=5.1 required=5.0 tests=BAYES_50,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: plane.gmane.org Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 16 Mar 2015 17:18:02 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YXYeK-0002SQ-MT for ecos-discuss@ecos.sourceware.org; Mon, 16 Mar 2015 18:17:56 +0100 Received: from 67-130-15-94.dia.static.qwest.net ([67.130.15.94]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Mar 2015 18:17:56 +0100 Received: from grant.b.edwards by 67-130-15-94.dia.static.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Mar 2015 18:17:56 +0100 To: ecos-discuss@ecos.sourceware.org From: Grant Edwards Date: Mon, 16 Mar 2015 17:18:00 -0000 Message-ID: User-Agent: slrn/1.0.1 (Linux) X-IsSubscribed: yes Subject: [ECOS] Once again, I need a binary semaphore X-SW-Source: 2015-03/txt/msg00001.txt.bz2 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