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

From: David Howells
Date: Thu Dec 15 2005 - 12:28:25 EST


Paul Jackson <pj@xxxxxxx> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/