[PATCH] score: Unify CORE mutex seize/surrender

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Sep 28 08:47:04 UTC 2016

On 28/09/16 10:38, Pavel Pisa wrote:
> Hello Sebastian and Gedare,
> I cannot hold myself to not express my opinion there.
> On Wednesday 28 of September 2016 07:52:51 Sebastian Huber wrote:
>> On 27/09/16 16:59, Gedare Bloom wrote:
>>> A mostly unrelated question: why do we have two different
>>> _Semaphore_Get functions, one static in score/src/semaphore.c and the
>>> other inlined from semimpl.h?
>> Yes, this is a bit confusing. One is part of the Classic API, the other
>> is for the self-contained semaphores.
> what is the reason to name these self-contained semaphores.

the name "self-contained" is used for objects which work with a user 
supplied storage.  For example:


In contrast to the Classic and POSIX objects which work with a kernel 
supplied storage which is accessed via the object identifier.

In the context of the Newlib <sys/lock.h> a "semaphore" is a counting 

Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

More information about the devel mailing list