Re: [PATCH 1/19] MUTEX: Introduce simple mutex implementation

David Howells
2005-12-15T17:28:56Z

Paul Jackson <pj@sgi.com> wrote:

>
> A phased change of just the renames:
> DECLARE_MUTEX ==> DECLARE_SEM
> init_MUTEX ==> init_SEM
> DECLARE_MUTEX_LOCKED ==> DECLARE_SEM_LOCKED
> init_MUTEX_LOCKED ==> init_SEM_LOCKED

I'd prefer:

FROM TO
============================== =========================
DECLARE_MUTEX DECLARE_SEM_MUTEX
DECLARE_MUTEX_LOCKED DECLARE_SEM_MUTEX_LOCKED
Proper counting semaphore DECLARE_SEM

That way people can show their intent and can be seen more easily when
violating it.

David